Just to reply to this, I was originally perplexed as to why C++ code could call external(dll) C code, but not the other way around.
C++ mangles function names to allow for templates which C code does not understand.
I just decided to compile both in C++ which works fine.
Amended on Wed 26 Dec 2007 01:53 AM (UTC) by ThomasWatts
Message
My problem is the following:
I compile Lua with g++ and I must compile SMAUG with g++ as well.
If I compile Lua with gcc, then I have to use gcc with SMAUG.
Zlib on the other hand can only compile with gcc, but links fine either way.
If I try to compile Lua with g++ and SMAUG with gcc I get undefined reference errors to lua functions, ie. lua_pushnil.
Does anyone else have this problem? Is this just a very minor concern and I'm being obsessive?
The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).
To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.