Hi,
I'm trying to compile my engine into a .lib + .dll ready to start a game. After much Googling and a few nights of tearing my hair out, I think I'm down to the last few niggles.
This is the linker error I'm getting when I try and compile a project using my .lib file:
main.obj : error LNK2001: unresolved external symbol "class sym::CEngine * sym::Engine" (?Engine@sym@@3PAVCEngine@1@A)
And here are the relevant parts of the Engine.h:
#ifndef SYM_API
#define SYM_API __declspec(dllexport)
#endif
class SYM_API CEngine
{
public:
CEngine();
//Init and shutdown the engine
bool Init();
void ShutDown();
...
extern SYM_API CEngine* Engine;
And the Engine.cpp:
CEngine* Engine = new CEngine();
Secondly, all I can find in the Debug folder is the .lib file. Where is there DLL? My project is set to compile a DLL and not a static lib.
Thanks in advance for any hints and tips.