Hi, I've wasted the entire day trying to get the Lua library lua52.lib linked to my C++ project in Code Blocks.
I'm at a loss as to what is wrong. I have the .lib file in C:\MinGW\lib. I have the header cLua.h in C:\MinGW\include.
The .lib file is specified in the Link Libraries list in Build options. I (of course) #include "cLua.h" in my project.
The directories for library and include are specified in "Search Directories" for the compiler.
Whenever I try to create a new instance of the cLua class from cLua.h
the following error appears during the linking stage:
undefined reference to `cLua::cLua()'
I'm trying to figure out what I've overlooked here. This library just refuses to link no matter what. Please help. Going insane here
Edit: I should note that other libraries such as SDL have linked just fine.