[prev in list] [next in list] [prev in thread] [next in thread] 

List:       lua-l
Subject:    Re: Using LUA libs in multithreaded VC apps
From:       Jean-Claude Wippler <jcw () equi4 ! com>
Date:       2001-06-22 19:05:43
Message-ID: 0106221205430G.04882 () lizzie
[Download RAW message or body]

On Friday 22 June 2001 11:54, you wrote:
> > When compiling using the multithreaded run time library, I get
> > lualib.lib(liolib.obj) : error LNK2001: unresolved external symbol _errno
> > 
> > Is there any quick way to get around this?
> 
> Just noticed that the easiest way to get the stuff running is to insert
> 
> extern "C" 
> {
>     int errno;
> }
> 
> into a cpp file. Is there any better, cleaner way?

extern "C" int errno;

extern "C" {
  #include "error.h"
}

Or, probably, if the header is recent, just:
  #include "error.h"

Better, cleaner - you decide.

-jcw

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic