[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: VC++ 6 and extern C not working
- From: Brian Hook <hook_l@...>
- Date: Tue, 16 Mar 2004 19:40:33 -0500
> and found the solution of wrapping the headers in extern "C" {...}.
You need to wrap the headers when included by all the .c files as way.
The easiest thing to do is put the extern "C" in lua.h itself.
> unresolved external symbol "struct lua_State * __cdecl
> lua_open(void)" (?lua_open@@YAPAUlua_State@@XZ)
This indicates that something is still trying to link against it in
C++ form.
Brian