Advertisement

More VC++ to devcpp problems. :(

Started by February 21, 2003 03:28 AM
0 comments, last by endasil 21 years, 8 months ago
I''m trying to get my code written with VC++ to work with devcpp. It compiles fine under VC++. Even if i have succeded to solve alot of problems thanks to the friendly people here, there are still things i do not understand. I''m getting a "few" error messages i cannot solve when trying to compile in devcpp. Please help me understand what i should do to make it work. Compiler: Default compiler Building Makefile: "H:\testar\Makefile.win" Executing make... make.exe -f "H:\testar\Makefile.win" all g++.exe ../Tanya/Projekt.o -o "Tanyaproject.exe" -L"H:/dev-cpp/lib" -mwindows "H:/DXSDK9.0/Lib/ddraw.lib" "H:/DXSDK9.0/Lib/dsound.lib" -I"H:/dev-cpp/include" -I"H:/dev-cpp/include/c++" -I"H:/dev-cpp/include" -I"H:/Dev-Cpp/include/c++" -I"H:/DXSDK9.0/Include" -I"H:/Dev-Cpp/include/c++" -I"H:/Dev-Cpp/include/c++/mingw32" ../Tanya/Projekt.o(.text+0x175)rojekt.cpp: undefined reference to `CreateBob(BitmapObjectType*, int, int, int, int, char*)'' ../Tanya/Projekt.o(.text+0x199)rojekt.cpp: undefined reference to `CreateBob(BitmapObjectType*, int, int, int, int, char*)'' ../Tanya/Projekt.o(.text+0x1b6)rojekt.cpp: undefined reference to `CreateBob(BitmapObjectType*, int, int, int, int, char*)'' ../Tanya/Projekt.o(.text+0x1d9)rojekt.cpp: undefined reference to `CreateBob(BitmapObjectType*, int, int, int, int, char*)'' ../Tanya/Projekt.o(.text+0xf33)rojekt.cpp: undefined reference to `CreateBob(BitmapObjectType*, int, int, int, int, char*)'' ../Tanya/Projekt.o(.text+0xf61)rojekt.cpp: more undefined references to `CreateBob(BitmapObjectType*, int, int, int, int, char*)'' follow ../Tanya/Projekt.o(.text+0x21be)rojekt.cpp: undefined reference to `CreateMainSurfaces()'' ../Tanya/Projekt.o(.text+0x2205)rojekt.cpp: undefined reference to `DirectDrawCreate@12'' make.exe: *** [Tanyaproject.exe] Error 1 Execution terminated DirectDrawCreate@12'' is somthing i have seen when i havn''t included the library for directdraw, but in this case i have as you can see... "undefined reference to `CreateBob(BitmapObjectType*, int, int, int, int, char*)" is somthing i have no idea why it happens... If you want to look at the source code, you can access it at http://www.dragonrealmsoftware.com/Projekt.cpp
EndasilVisit my site, try my gameswww.dragonrealmsoftware.comI need more beta tester for my game! Check out http://www.dragonrealmsoftware.com
In the function DisplayDDErrorMessage there is an unterminated /* that is causeing the preprocessor to cut those functions out of the source so the compiler doesn''t see them and compile them. Fix that, change ofstream to std::ofstream, change ios to std::ios, change a few NULLs to 0, and it compiles without errors.
Chess is played by three people. Two people play the game; the third provides moral support for the pawns. The object of the game is to kill your opponent by flinging captured pieces at his head. Since the only piece that can be killed is a pawn, the two armies agree to meet in a pawn-infested area (or even a pawn shop) and kill as many pawns as possible in the crossfire. If the game goes on for an hour, one player may legally attempt to gouge out the other player's eyes with his King.

This topic is closed to new replies.

Advertisement