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

  FORUM HardWare.fr
  Programmation

  problème avec makefile

 


 Mot :   Pseudo :  
 
Bas de page
Auteur Sujet :

problème avec makefile

n°51833
Fredo106
Posté le 08-08-2001 à 15:35:31  profilanswer
 

voilà le contenu de mon fichier Makefile  
 
"  
OBJECTS = 3way.o cast.o dh2.o eprecomp.o md5mac.o oaep.o rc2.o sapphire.o square.o xtrcrypt.o adler32.o casts.o dh.o files.o ida.o md5.o osrng.o rc5.o seal.o squaretb.o xtr.o algebra.o cbc.o diamond.o filters.o idea.o misc.o panama.o rc6.o secshare.o tea.o zdeflate.o arc4.o channels.o diamondt.o gf2_32.o integer.o modes.o pch.o rdtables.o serpent.o test.o zinflate.o asn.o Conversion.o driver.o gf256.o iterhash.o modexppc.o pkcspad.o rijndael.o sha1.o tftables.o zlib.o base64.o crc.o dsa.o gf2n.o luc.o mqueue.o polynomi.o ripemd.o sha.o tiger.o bfinit.o cryptlib.o ec2n.o gost.o mars.o mqv.o pubkey.o rng.o sharkbox.o tigertab.o blowfish.o default.o eccrypto.o gzip.o marss.o nbtheory.o queue.o rsa.o shark.o twofish.o blumgold.o des.o ecp.o haval.o md2.o network.o rabin.o rw.o skipjack.o wake.o blumshub.o dessp.o elgamal.o hex.o md5c.o nr.o randpool.o safer.o socketft.o winpipes.o  
 
projeth: $(OBJECTS)  
 gcc -o projeth $(OBJECTS)  
 
%.o: %.c  
 gcc -c $*.  
"  
 
le but étant de construire un exécutable projeth à partir de l'ensemble des progs présents dans le répertoire, les .cc et les .h sont contenus dans le répertoire,  
 
est ce qu'il n'y aurait pas une erreur, je rencontre de nombreuses erreurs lors du lancement du make, alors que le même projet fonctionne sous visual studio,  
 
merci d'avance.

mood
Publicité
Posté le 08-08-2001 à 15:35:31  profilanswer
 

n°51846
Fredo106
Posté le 08-08-2001 à 15:57:28  profilanswer
 

voilà le message d'erreur:  
 
$ make  
g++    -c -o test.o test.cc  
In file included from test.cc:18:  
sha1.h:17:6: warning: no newline at end of file  
sha1.h:17:6: warning: no newline at end of file  
In file included from test.cc:22:  
Conversion.h:18:6: warning: no newline at end of file  
Conversion.h:18:6: warning: no newline at end of file  
test.cc: In function `void MD5Printc (unsigned char *)':  
test.cc:954: parse error before `}'  
test.cc:963: `bit' undeclared (first use this function)  
test.cc:963: (Each undeclared identifier is reported only once for each  
function it appears in.)  
test.cc:966: `input' undeclared (first use this function)  
test.cc:979: parse error before `{'  
test.cc:982: conflicting types for `int i'  
test.cc:948: previous declaration as `unsigned int i'  
test.cc:984: `j' undeclared (first use this function)  
test.cc:984: `position' undeclared (first use this function)  
test.cc:986: `integer' undeclared (first use this function)  
test.cc:986: `textNum' undeclared (first use this function)  
make: *** [test.o] Erreur 1  
 
vu le nombre de sources qu'il y a il doit y avoir un problème d'ordre je suppose:  
 
il ne trouve peut être pas certaine fonction qui sont déclarées plus tard,  
 
existe-t-il des options permettant de laisser make chercher le bon ordre de compilation:

n°51862
Fredo106
Posté le 08-08-2001 à 16:56:26  profilanswer
 

up


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

  problème avec makefile

 

Sujets relatifs
[ PHP / Oracle ] Problème pour récupérer des champs[VBA] probleme de raffraichissement
[ ORACLE ] Problème avec le type LONG[ASP] problème avec recordset
php: problème ac le global.HELP!!! Problème avec #include
probleme F sur excel[ PHP ] Problème d'images
Plus de sujets relatifs à : problème avec makefile


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