| jason9559 (13) | |||||||||
|
I'm getting a weird error involving my memory initializer function that is in the namespace mem. The error is thus: 1>------ Build started: Project: EEngine - Editor, Configuration: Debug Win32 ------ 1>Build started 2/3/2013 2:02:06 PM. 1>InitializeBuildStatus: 1> Touching "Debug\EEngine - Editor.unsuccessfulbuild". 1>ClCompile: 1> E_Memory.cpp 1>ResourceCompile: 1> All outputs are up-to-date. 1>Link: 1> Creating library C:\Games\!Echoes Team\EEngine - Editor\Debug\EEngine - Editor.lib and object C:\Games\!Echoes Team\EEngine - Editor\Debug\EEngine - Editor.exp 1>E_Engine.obj : error LNK2019: unresolved external symbol "void __cdecl mem::initializeMemory(void)" (?initializeMemory@mem@@YAXXZ) referenced in function "public: __thiscall EEngine::Engine::Engine(void)" (??0Engine@EEngine@@QAE@XZ) 1>C:\Games\!Echoes Team\EEngine - Editor\Debug\EEngine - Editor.exe : fatal error LNK1120: 1 unresolved externals 1> 1>Build FAILED. 1> 1>Time Elapsed 00:00:03.12 ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ========== Any help would be greatly appreciated. E_Memory.h
E_Memory.cpp
E_Engine.h
E_Engine.cpp
| |||||||||
|
Last edited on
|
|||||||||
| ne555 (4385) | |
http://www.cplusplus.com/forum/general/89135/#msg478659core = new Core(); ¿why dynamic allocation?
| |
|
|
|
| jason9559 (13) | |
|
That link tells me the problem...how do i fix it? P.S. don't ask me why its dynamic allocation. I'm not the one that created the foundation of the engine. | |
|
|
|
| nedo (31) | |
| my guess is either you are missing an cpp or you haven't linked some library. Did this "engine" come with some librarys as well? | |
|
|
|
| ne555 (4385) | |
|
> That link tells me the problem...how do i fix it? great, ¿what was the problem? (it gives you 4 reasons) `E_Memory.cpp' is not being linked now. You need to put it in the project ¿what build tools are you using? | |
|
Last edited on
|
|
| jason9559 (13) | |
| This is a custom engine that me and two other people are making for a game, so no library's except for SFML for now. We are using visual studio for the development. I'm going to try and link E_Memory.cpp. | |
|
Last edited on
|
|
| jason9559 (13) | |
| Fixed it. | |
|
|
|