Jump to content
  • 0

[C++]Compiling a library with GCC



  • Answers 2
  • Created
  • Last Reply

Top Posters For This Question

Popular Days

Top Posters For This Question

2 answers to this question

Recommended Posts

  • 0



Now i've got this error: std::string
I think that i need to work a little bit on paths, because some headers includes other headers but with a wrong path.

Like lua_incl.h that uses #include <lua.h> changed to #include "lua.h" and now it works



replacing GCC with G++ it works (90% works), now it says:

undefined reference QUEST

/usr/lib/crt1.o: In function `_start1':
crt1_c.c:(.text+0xa6): undefined reference to `main'
/tmp//ccxMzbuE.o: In function `quest::RegisterGlobalFunctionTable(lua_State*)':
prova.cpp:(.text+0x1bd): undefined reference to `lua_pushstring(lua_State*, char const*)'
prova.cpp:(.text+0x1db): undefined reference to `lua_pushcclosure(lua_State*, int (*)(lua_State*), int)'
prova.cpp:(.text+0x1ee): undefined reference to `lua_settable(lua_State*, int)'
/tmp//ccxMzbuE.o: In function `quest::_ciao_mondo(lua_State*)':
prova.cpp:(.text+0x2c1): undefined reference to `quest::combine_lua_string(lua_State*, std::basic_ostringstream<char, std::char_traits<char>, std::allocator<char> >&)'
prova.cpp:(.text+0x30c): undefined reference to `quest::CQuestManager::AddScript(std::string const&)'
[email protected]:/LIB_LUA #
Edited by stefano9876
Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.