I don't think this email got through the first time so I'm resending. If it did get through, ignore this copy. If this one gets through first, ignore the second one.
I decided to use luabind in my Half-Life 2 mod. I successfully implemented it in a small project first to make sure I had all of the linker and include stuff done correctly. I'm also using the newest versions of luabind, boost and lua (because I had the same issue with the version on the Nuclex tutorial version). I get compiler errors when I include luabind.hpp. Here's the include code: #include "cbase.h" #include "luabind/luabind.hpp" // memdbgon must be the last include file in a .cpp file!!! #include "tier0/memdbgon.h" And here's the first error it generates (there are over 100 errors all in the same function_template file): Error 2 error C2143: syntax error : missing ';' before 'namespace' c:\project02\src\lua\boost\boost\function\function_template.hpp 80 Server Episodic It gives these errors even if the include code is the only code in the cpp file. I get these errors unless I put then luabind include before the cbase include. When I do that, it starts acting strange in another way. I get the following error whenever I try to access the luabind namespace in the code e.g. luabind::module[etc]: Error 3 error C2653: 'luabind' : is not a class or namespace name c:\project02\src\game\server\lua_luahandle.cpp 32 Server Episodic If I put the luabind include before cbase, intellisense can see the luabind namespace but when I compile, it still doesn't recognise luabind as a namespace. I've quadruple checked my linker and include stuff and have tried different versions. I've also tried in debug and release. I've created a tiny new project and given it the same linker and include setup and it works fine. What could I be doing wrong and how can I fix it? Does cbase.h have something in it that luabind doesn't like? I've also tried following the tutorial on the wiki ( http://developer.valvesoftware.com/wiki/Lua_tutorial ) but it doesn't seem to get past the compilation stage. I really appreciate any help. Just throw any ideas you have at me because I'm all out. Thanks :) p.s. if anyone has actually successfully implemented LuaBind in their HL2 project, I'd be very grateful if they could send the files concerned. _______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders

