I wrote the source files with KWrite in linux and created a makefile for=20
linux, but when i copy the source files to windows and create a new proje=
ct=20
with Dev-C++. There is no missing source code files, there are no old ob=
j=20
files from linux. I tryed to compile it at another computer with a older=20
version of Dev-C++ and its works...
can some one tell me whats is a "undefined reference to `mcount' "?
m=E5ndag 21 april 2003 13:19 skrev du:
> Did you start the project in Linux? That would mess it up. Recompile
> everything. Then it should work.
>
> ----- Original Message -----
> From: Fredrik Persson <per...@li...>
> Date: Sunday, April 20, 2003 12:28 pm
> Subject: [Dev-C++] Dev-C++ and SDL
>
> > My project dont compile with Dev-C++, It compiles with g++(Linux),
> > but when i
> > try to compile it with Dev-C++ I got a few error wich I dont
> > understand.
> > 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++"
> > -I"C:/DEV-CPP/include/c++/mingw32" -I"C:/DEV-
> > CPP/include/c++/backward"
> > -I"C:/DEV-CPP/include" -I"C:/Dev-Cpp/include/SDL" -pg -
> > g3g++.exe
> > -D__DEBUG__ SDLdemo.o CmySDL.o CLoadImage.o CAnimSprite.o CMap.o
> > SDL_Demo_Win_private.res -o "SDL_Demo_Win.exe" -L"C:/DEV-CPP/lib"
> > C:/Dev-Cpp/lib/libmingw32.a C:/Dev-Cpp/lib/libSDLmain.a
> > C:/Dev-Cpp/lib/libSDL.a SDLdemo.o(.text+0xe6): In function
> > `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
> > `Z41__static_initialization_and_destruction_0ii':C:/DEV-
> > CPP/include/c++/streambuf:131:
> > 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
> > undefined
> > references to `mcount' followK=F6rning avslutad
> > -----end
> >
> > -----
> > Chili-eaters is some of your chosen people, Lord. We don't know
> > why you're so
> > doggone good to us. But, Lord God, don't never think we ain't
> > grateful for
> > this chili we are about to eat. Amen.
> >
> > //Perra
> >
> >
> > -------------------------------------------------------
> > This sf.net email is sponsored by:ThinkGeek
> > Welcome to geek heaven.
> > http://thinkgeek.com/sf
> > _______________________________________________
> > Dev-cpp-users mailing list
> > Dev...@li...
> > TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm
> > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
--=20
-----
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
|