My project dont compile with Dev-C++, It compiles with g++(Linux), but wh=
en i=20
try to compile it with Dev-C++ I got a few error wich I dont understand.=20
Whats is "undefined reference to `mcount' "?
begin-----
make.exe -f "G:\demo2\Makefile.win" all
g++.exe -D__DEBUG__ -c SDLdemo.cpp -o SDLdemo.o -I"C:/DEV-CPP/include/c++=
" =20
-I"C:/DEV-CPP/include/c++/mingw32" -I"C:/DEV-CPP/include/c++/backward" =20
-I"C:/DEV-CPP/include" -I"C:/Dev-Cpp/include/SDL" -pg -g3g++.exe=20
-D__DEBUG__ SDLdemo.o CmySDL.o CLoadImage.o CAnimSprite.o CMap.o=20
SDL_Demo_Win_private.res -o "SDL_Demo_Win.exe" -L"C:/DEV-CPP/lib"=20
C:/Dev-Cpp/lib/libmingw32.a C:/Dev-Cpp/lib/libSDLmain.a=20
C:/Dev-Cpp/lib/libSDL.a SDLdemo.o(.text+0xe6): In function=20
`SDL_main':G:/demo2/SDLdemo.cpp:47: undefined reference to `mcount'
SDLdemo.o(.text+0x2a4): In function `Z8keyeventv':
G:/demo2/SDLdemo.cpp:110: undefined reference to `mcount'
SDLdemo.o(.text+0x2f4): In function=20
`Z41__static_initialization_and_destruction_0ii':C:/DEV-CPP/include/c++/s=
treambuf:131:=20
undefined reference to `mcount'
SDLdemo.o(.text+0x344): In function `GLOBAL__I_game_state':
C:/DEV-CPP/include/c++/streambuf:131: undefined reference to `mcount'
SDLdemo.o(.text+0x368): In function `GLOBAL__D_game_state':
C:/DEV-CPP/include/c++/streambuf:131: undefined reference to `mcount'
SDLdemo.o(.text$_ZN6CmySDLD1Ev+0x9):G:/demo2/CAnimSprite.h: more undefine=
d=20
references to `mcount' followK=F6rning avslutad
-----end
-----
Chili-eaters is some of your chosen people, Lord. We don't know why you'r=
e so=20
doggone good to us. But, Lord God, don't never think we ain't grateful fo=
r=20
this chili we are about to eat. Amen.
//Perra
|