I am working on a program that handles dates in a variaty of exciting
ways, after clicking on run, I realize that there was a bug. So, using
Dev-Cpp 4.9.8.0 debuger interface I got this:
---------------------------------------------------------------------------------------------------
Compiler: Default compiler
Building Makefile: "C:\Dev-Cpp\Makefile.win"
Executing make clean
rm -f ../jme/lib/cpp/date/date.o ../jme/lib/cpp/date/main.o
../jme/lib/cpp/exception/exception.o
../jme/lib/cpp/currentdate/currentdate.o ../jme/lib/cpp/name/name.o
Time.exe
g++.exe -D__DEBUG__ -c ../jme/lib/cpp/date/date.C -o
../jme/lib/cpp/date/date.o -I"C:/cygwin/usr/include/c++" -fexceptions
-fverbose-asm -pg -g3
g++.exe -D__DEBUG__ -c ../jme/lib/cpp/date/main.C -o
../jme/lib/cpp/date/main.o -I"C:/cygwin/usr/include/c++" -fexceptions
-fverbose-asm -pg -g3
g++.exe -D__DEBUG__ -c ../jme/lib/cpp/exception/exception.C -o
../jme/lib/cpp/exception/exception.o -I"C:/cygwin/usr/include/c++"
-fexceptions -fverbose-asm -pg -g3
g++.exe -D__DEBUG__ -c ../jme/lib/cpp/currentdate/currentdate.C -o
../jme/lib/cpp/currentdate/currentdate.o -I"C:/cygwin/usr/include/c++"
-fexceptions -fverbose-asm -pg -g3
g++.exe -D__DEBUG__ -c ../jme/lib/cpp/name/name.C -o
../jme/lib/cpp/name/name.o -I"C:/cygwin/usr/include/c++" -fexceptions
-fverbose-asm -pg -g3
g++.exe -D__DEBUG__ ../jme/lib/cpp/date/date.o
../jme/lib/cpp/date/main.o ../jme/lib/cpp/exception/exception.o
../jme/lib/cpp/currentdate/currentdate.o ../jme/lib/cpp/name/name.o -o
"Time.exe" -L"C:/cygwin/lib"
../jme/lib/cpp/date/date.o(.text+0x17): In function `_ZN3jme4Date4InitEv':
/cygdrive/c/Dev-Cpp/../jme/lib/cpp/date/date.C:4: undefined reference to
`_mcount'
../jme/lib/cpp/date/date.o(.text+0x1c1): In function `_ZN3jme4DateC2Ev':
/cygdrive/c/Dev-Cpp/../jme/lib/cpp/date/date.C:14: undefined reference
to `_mcount'
../jme/lib/cpp/date/date.o(.text+0x341): In function `_ZN3jme4DateC1Ev':
/cygdrive/c/Dev-Cpp/../jme/lib/cpp/date/date.C:14: undefined reference
to `_mcount'
../jme/lib/cpp/date/date.o(.text+0x4f2): In function `_ZN3jme4DateC2ERKS0_':
/cygdrive/c/Dev-Cpp/../jme/lib/cpp/date/date.C:18: undefined reference
to `_mcount'
../jme/lib/cpp/date/date.o(.text+0x566): In function `_ZN3jme4DateC1ERKS0_':
/cygdrive/c/Dev-Cpp/../jme/lib/cpp/date/date.C:18: undefined reference
to `_mcount'
../jme/lib/cpp/date/date.o(.text+0x5e3):/cygdrive/c/Dev-Cpp/../jme/lib/cpp/date/date.C:27:
more undefined references to `_mcount' follow
../jme/lib/cpp/date/main.o(.text+0x34): In function `main':
/cygdrive/c/Dev-Cpp/../jme/lib/cpp/date/main.C:13: undefined reference
to `__monstartup'
../jme/lib/cpp/date/main.o(.text+0xcc): In function `_Z16TestConstructorsv':
/cygdrive/c/Dev-Cpp/../jme/lib/cpp/date/main.C:23: undefined reference
to `_mcount'
../jme/lib/cpp/date/main.o(.text+0x73f): In function `_Z5Writev':
/cygdrive/c/Dev-Cpp/../jme/lib/cpp/date/main.C:35: undefined reference
to `_mcount'
../jme/lib/cpp/date/main.o(.text+0x74f): In function `_Z4Readv':
/cygdrive/c/Dev-Cpp/../jme/lib/cpp/date/main.C:54: undefined reference
to `_mcount'
../jme/lib/cpp/date/main.o(.text+0x762): In function
`_Z41__static_initialization_and_destruction_0ii':
/usr/include/c++/3.3.1/sstream:355: undefined reference to `_mcount'
../jme/lib/cpp/date/main.o(.text+0x7aa): In function `_GLOBAL__I_main':
/usr/include/c++/3.3.1/iostream:90: undefined reference to `_mcount'
../jme/lib/cpp/date/main.o(.text+0x7d0):/usr/include/c++/3.3.1/iostream:90:
more undefined references to `_mcount' follow
collect2: ld returned 1 exit status
make: *** [Time.exe] Error 1
Execution terminated
---------------------------------------------------------------------------------------------------
I did make some changes in the settings:
Project Options->Compiler->Code Generation->Enable Exception handling
Project Options->Compiler->Code Generation->Put extra commentary
information in the generated
Project Options->Compiler->Linker->Generate debuging information
I am not using MinGW, but CygWin gcc, g++, gdb, etc, etc.
Can anyone help?
--
Jorge Escalante
FYI
http://www.astro.umd.edu/~marshall/abbrev.html
E-Mail Policy
http://www.vif.com/users/escalante/Email_Policy.html
* You cannot exercise your power to a point of humiliation.
- Jean Chretien
* The media's the most powerful entity on earth. They have the
power to make the innocent guilty and to make the guilty
innocent, and that's power.
- Malcom X
* "Innocent until proven guilty", no... not in Canada!!
|