Forum |  HardWare.fr | News | Articles | PC | S'identifier | S'inscrire | Shop Recherche
1044 connectés 

  FORUM HardWare.fr
  Programmation
  C++

  [g++] link bizarre

 


 Mot :   Pseudo :  
 
Bas de page
Auteur Sujet :

[g++] link bizarre

n°249228
Taz@PPC
saloperie de i=`expr $i + 1`;
Posté le 20-11-2002 à 06:34:03  profilanswer
 

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++]
mood
Publicité
Posté le 20-11-2002 à 06:34:03  profilanswer
 

n°250672
BENB
100% Lux.
Posté le 21-11-2002 à 15:19:09  profilanswer
 

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...
 


Aller à :
Ajouter une réponse
  FORUM HardWare.fr
  Programmation
  C++

  [g++] link bizarre

 

Sujets relatifs
Link source prog C(visual c++) pbl avec les includes et le link...
Compilation bizarre avec VS.NET...MySQL vs PostgreSQL - Résultat très bizarre sur insertion
[C/C++/SDL] Petits soucis de link avec la libSDL[GLUT && devcpp] Probleme de link
[PHP] Erreur bizarre. Dois être facile à trouver je pense....CSS et a:hover link visited .etc comment en faire de plusieurs styles?
PB couleur link avec image[C/C++] Comportement bizarre de printf()/switch sous Linux (gcc)
Plus de sujets relatifs à : [g++] link bizarre


Copyright © 1997-2022 Hardware.fr SARL (Signaler un contenu illicite / Données personnelles) / Groupe LDLC / Shop HFR