undefined reference to `mcount'
Posted: Wed Nov 18, 2009 7:52 pm
Codelite Rev: 3034 on Windows 2003 SP2 is giving following error: 'mcount'
which I do not have it in any file!
--------------------------------------------------------------------------------------------------------------------------
----------Build Started--------
----------Building project:[ Crunch - Debug ]----------
C:/Projects/WorkSpace/Crunch/Crunch/crunch.c
24: undefined reference to `mcount'
177: undefined reference to `mcount'
C:/Projects/WorkSpace/Crunch/Crunch/inputh.c
23: undefined reference to `mcount'
46: undefined reference to `mcount'
61: undefined reference to `mcount'
C:/Projects/WorkSpace/Crunch/Crunch/main.c
34: undefined reference to `_monstartup'
----------Build Ended----------
----------Build Started--------
----------Building project:[ CrunchMake - Debug ]----------
Codelite SVN Build Rev: 3367 on Ubuntu 9.10 x64 gives no warning or error at all.
same result on building from command line or Visual Studio 2008 Team Suite too.
--------------------------------------------------------------------------------------------------------------------------
----------Building project:[ Crunch - Debug ]----------
gcc -c "/home/user/Projects/Crunch/Crunch/crunch.c" -pg -g -ansi -W -Wall -o ./Debug/crunch.o "-I." "-I."
gcc -c "/home/user/Projects/Crunch/Crunch/inputh.c" -pg -g -ansi -W -Wall -o ./Debug/inputh.o "-I." "-I."
gcc -c "/home/user/Projects/Crunch/Crunch/main.c" -pg -g -ansi -W -Wall -o ./Debug/main.o "-I." "-I."
gcc -o ./Debug/Crunch ./Debug/crunch.o ./Debug/inputh.o ./Debug/main.o "-L."
----------Build Ended----------
0 errors, 0 warnings
----------Build Started--------
make
----------Building project:[ CrunchMake - Debug ]----------
make: *** No targets specified and no makefile found. Stop.
----------Build Ended----------
0 errors, 0 warnings
which I do not have it in any file!
--------------------------------------------------------------------------------------------------------------------------
----------Build Started--------
----------Building project:[ Crunch - Debug ]----------
C:/Projects/WorkSpace/Crunch/Crunch/crunch.c
24: undefined reference to `mcount'
177: undefined reference to `mcount'
C:/Projects/WorkSpace/Crunch/Crunch/inputh.c
23: undefined reference to `mcount'
46: undefined reference to `mcount'
61: undefined reference to `mcount'
C:/Projects/WorkSpace/Crunch/Crunch/main.c
34: undefined reference to `_monstartup'
----------Build Ended----------
----------Build Started--------
----------Building project:[ CrunchMake - Debug ]----------
Codelite SVN Build Rev: 3367 on Ubuntu 9.10 x64 gives no warning or error at all.
same result on building from command line or Visual Studio 2008 Team Suite too.
--------------------------------------------------------------------------------------------------------------------------
----------Building project:[ Crunch - Debug ]----------
gcc -c "/home/user/Projects/Crunch/Crunch/crunch.c" -pg -g -ansi -W -Wall -o ./Debug/crunch.o "-I." "-I."
gcc -c "/home/user/Projects/Crunch/Crunch/inputh.c" -pg -g -ansi -W -Wall -o ./Debug/inputh.o "-I." "-I."
gcc -c "/home/user/Projects/Crunch/Crunch/main.c" -pg -g -ansi -W -Wall -o ./Debug/main.o "-I." "-I."
gcc -o ./Debug/Crunch ./Debug/crunch.o ./Debug/inputh.o ./Debug/main.o "-L."
----------Build Ended----------
0 errors, 0 warnings
----------Build Started--------
make
----------Building project:[ CrunchMake - Debug ]----------
make: *** No targets specified and no makefile found. Stop.
----------Build Ended----------
0 errors, 0 warnings