[g++] link bizarre

link bizarre [g++] - C++ - Programmation

Marsh Posté le 20-11-2002 à 06:34:03    

D:\Licence\LIN1\UBSC>make ubsc
[g]g++ -pipe -s -o ubsc ubs.o lbs.o ubsc.o ubsc_codec.o ubsc_codec_Huffman.o ubsc_codec_Sh_F.o ubsc_codec_LZW.o main_ubsc.o ubsc_codec_common.o[/g]
 
D:\Licence\LIN1\UBSC>gdb ubsc
GNU gdb 5.1.1 (mingw experimental)
Copyright 2002 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "mingw32"...(no debugging symbols found)...
(gdb) run
Starting program: D:\Licence\LIN1\UBSC/ubsc.exe
 
Program exited [#00ff00]normally[/#00ff00].
(gdb) quit
 
D:\Licence\LIN1\UBSC>make -f makefile2 ubsc
[g]g++ -pipe -s -o ubsc main_ubsc.o lbs.o ubs.o ubsc.o ubsc_codec.o ubsc_codec_common.o ubsc_codec_Huffman.o ubsc_codec_LZW.o ubsc_codec_Sh_F.o[/g]
 
D:\Licence\LIN1\UBSC>gdb ubsc
GNU gdb 5.1.1 (mingw experimental)
Copyright 2002 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "mingw32"...(no debugging symbols found)...
(gdb) run
Starting program: D:\Licence\LIN1\UBSC/ubsc.exe
 
[#ff0000]Program received signal SIGSEGV[/#ff0000], Segmentation fault.
0x00402f3d in ?? ()
(gdb) quit
The program is running.  Exit anyway? (y or n) y


 
je comprends pas mes lignes de commandes sont semblables si ce n'est dans l'ordres des arguments fichiers objets. Avec la deuxieme version, le programme plante apparemment cause d'un new qui echoue...
 
vous pouvez m'aidez?
(les makefiles ne font que la ligne que je vous donne)
 
ca peut venir du compilo (ici MinGW2.0) ou il y a un odre a respecter a l'assemblage?


---------------
du bon usage de rand [C] / [C++]
Reply

Marsh Posté le 20-11-2002 à 06:34:03   

Reply

Marsh Posté le 21-11-2002 à 15:19:09    

L'ordre a une importance quand il y a des bibliotheque statiques.
Sinon pour des .o il y a un ordre optimal qui est donne par
 

Code :
  1. lorder *.o | tsort


 
si ces commandes sont dispo sur ta plateforme...
 

Reply

Sujets relatifs:

Leave a Replay

Make sure you enter the(*)required information where indicate.HTML code is not allowed