[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re[2]: VC++ 6 and extern C not working
- From: Ryan Leigh <ryan@...>
- Date: Tue, 16 Mar 2004 16:59:42 -0800
Hello Brian,
YES! It worked! Thank you!
Ryan
Tuesday, March 16, 2004, 4:40:33 PM, you wrote:
>> and found the solution of wrapping the headers in extern "C" {...}.
BH> You need to wrap the headers when included by all the .c files as way.
BH> 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)
BH> This indicates that something is still trying to link against it in
BH> C++ form.
BH> Brian