librarys hurt me in ways you cannot imagine
Posted: Sat Jan 30, 2010 2:08 pm
Hello everyone,
So I am trying to make a simple level editor int dark gdk. All it does is translate what is on the screen and make it into a txt file.
When i started playing around with txt files it started to break on me. Here is the visual studio build output:
>libcpmtd.lib(xdebug.obj) : warning LNK4098: defaultlib 'libcmt.lib' conflicts with use of other libs; use /NODEFAULTLIB:library
1>Main.obj : error LNK2019: unresolved external symbol "public: __thiscall Obstacle::Obstacle(void)" (??0Obstacle@@QAE@XZ) referenced in function "void __cdecl DarkGDK(void)" (?DarkGDK@@YAXXZ)
1>Main.obj : error LNK2019: unresolved external symbol "public: __thiscall Obstacle::~Obstacle(void)" (??1Obstacle@@QAE@XZ) referenced in function "void __cdecl DarkGDK(void)" (?DarkGDK@@YAXXZ)
1>libcpmtd.lib(xdebug.obj) : error LNK2019: unresolved external symbol __malloc_dbg referenced in function "void * __cdecl operator new(unsigned int,struct std::_DebugHeapTag_t const &,char *,int)" (??2@YAPAXIABU_DebugHeapTag_t@std@@PADH@Z)
1>libcpmtd.lib(xdebug.obj) : error LNK2019: unresolved external symbol __free_dbg referenced in function "void __cdecl operator delete(void *,struct std::_DebugHeapTag_t const &,char *,int)" (??3@YAXPAXABU_DebugHeapTag_t@std@@PADH@Z)
1>Debug\Edit.exe : fatal error LNK1120: 4 unresolved externals
1>Build log was saved at "file://c:\Documents and Settings\steve\My Documents\Visual Studio 2008\Projects\Edit\Edit\Debug\BuildLog.htm"
1>Edit - 5 error(s), 12 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
I was playing around with my "project > properties > linker" and while there i used NODEFAULTLIB and played around alot, but cannot figure out the problem.
The first two errors may be due to my lack of constructor/destructors to my Obstacle class
The others are just killing me.
Anyone who can point me in the correct direction will be considered a God by me.
Any and all help is extremely appreciated!
Thank you much, and i'll post a vid of the level editor if anyone would like to see it (Assuming i can get it to run).
So I am trying to make a simple level editor int dark gdk. All it does is translate what is on the screen and make it into a txt file.
When i started playing around with txt files it started to break on me. Here is the visual studio build output:
>libcpmtd.lib(xdebug.obj) : warning LNK4098: defaultlib 'libcmt.lib' conflicts with use of other libs; use /NODEFAULTLIB:library
1>Main.obj : error LNK2019: unresolved external symbol "public: __thiscall Obstacle::Obstacle(void)" (??0Obstacle@@QAE@XZ) referenced in function "void __cdecl DarkGDK(void)" (?DarkGDK@@YAXXZ)
1>Main.obj : error LNK2019: unresolved external symbol "public: __thiscall Obstacle::~Obstacle(void)" (??1Obstacle@@QAE@XZ) referenced in function "void __cdecl DarkGDK(void)" (?DarkGDK@@YAXXZ)
1>libcpmtd.lib(xdebug.obj) : error LNK2019: unresolved external symbol __malloc_dbg referenced in function "void * __cdecl operator new(unsigned int,struct std::_DebugHeapTag_t const &,char *,int)" (??2@YAPAXIABU_DebugHeapTag_t@std@@PADH@Z)
1>libcpmtd.lib(xdebug.obj) : error LNK2019: unresolved external symbol __free_dbg referenced in function "void __cdecl operator delete(void *,struct std::_DebugHeapTag_t const &,char *,int)" (??3@YAXPAXABU_DebugHeapTag_t@std@@PADH@Z)
1>Debug\Edit.exe : fatal error LNK1120: 4 unresolved externals
1>Build log was saved at "file://c:\Documents and Settings\steve\My Documents\Visual Studio 2008\Projects\Edit\Edit\Debug\BuildLog.htm"
1>Edit - 5 error(s), 12 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
I was playing around with my "project > properties > linker" and while there i used NODEFAULTLIB and played around alot, but cannot figure out the problem.
The first two errors may be due to my lack of constructor/destructors to my Obstacle class
The others are just killing me.
Anyone who can point me in the correct direction will be considered a God by me.
Any and all help is extremely appreciated!
Thank you much, and i'll post a vid of the level editor if anyone would like to see it (Assuming i can get it to run).