I also compiled and installed the package with debug information, and ran the 
linker with gdb. Here are the results, hope they are helpful :)

======== begin
$ gdb i586-mingw32msvc-ld
GNU gdb 6.8-debian
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu"...
(gdb) run -o test.exe test.o glut32.lib -lopengl32 -lglu32
Starting program: /usr/bin/i586-mingw32msvc-ld -o test.exe test.o 
glut32.lib -lopengl32 -lglu32
test.o:test.c:(.text+0x7): undefined reference to `_exit'
test.o:test.c:(.text+0x28): undefined reference to `_exit'
test.o:test.c:(.text+0x46): undefined reference to `_exit'
test.o:test.c:(.text+0x186): undefined reference to `___main'

Program received signal SIGSEGV, Segmentation fault.
0x0000000000461121 in _bfd_coff_link_input_bfd (finfo=0x7fff0f735530, 
input_bfd=0x102b330)
    
at 
/usr/local/tmp/mingw32-binutils-2.18.50-20080109/build_dir/src/binutils-2.18.50-20080109/bfd/cofflink.c:1793
1793                    isym.n_scnum = (*secpp)->output_section->target_index;
(gdb) bt
#0  0x0000000000461121 in _bfd_coff_link_input_bfd (finfo=0x7fff0f735530, 
input_bfd=0x102b330)
    
at 
/usr/local/tmp/mingw32-binutils-2.18.50-20080109/build_dir/src/binutils-2.18.50-20080109/bfd/cofflink.c:1793
#1  0x000000000045f142 in _bfd_coff_final_link (abfd=0x10136c0, info=0x714720)
    
at 
/usr/local/tmp/mingw32-binutils-2.18.50-20080109/build_dir/src/binutils-2.18.50-20080109/bfd/cofflink.c:905
#2  0x000000000041a73a in ldwrite ()
    
at 
/usr/local/tmp/mingw32-binutils-2.18.50-20080109/build_dir/src/binutils-2.18.50-20080109/ld/ldwrite.c:561
#3  0x0000000000417ac3 in main (argc=7, argv=0x7fff0f7358c8)
    
at 
/usr/local/tmp/mingw32-binutils-2.18.50-20080109/build_dir/src/binutils-2.18.50-20080109/ld/ldmain.c:468
(gdb) quit
The program is running.  Exit anyway? (y or n) EOF [assumed Y]
======== end



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to