tolua -o baseObject_lua.C -H baseObject_lua.hxx baseObject.pkg
you should call the output baseObject_lua.cpp, otherwise VC6 compiles it as a C program, not C++. -- waldemar