URL: https://linuxfr.org/forums/programmation-c/posts/probleme-de-makefile Title: Probleme de makefile Authors: savM061 Date: 2006年05月24日T17:47:20+02:00 Tags: Score: 0 Bonjour, J'ai récupéré le code d'un article de traitement d'image mais quand je lance le makefile fourni avec le code C++ j'obtiens l'erreur suivante au niveau de l'édition de liens. $ make g++ -O -I../mht -o trackCorners trackCorners.o motionModel.o \ -L ../mht -lmht -lm c:\Dev-Cpp\bin\..\lib\gcc\mingw323円.4.2\..\..\..\..\mingw32\bin\ld.exe: cannot f ind -lmht collect2: ld returned 1 exit status c:\Dev-Cpp\bin\make.exe: *** [trackCorners] Error 1 J'utilise comme éditeur Dev C++ mais je compile via Cygwin. J'ai demandé conseils à des amis mais ils ils me disent que le makefile est correct. Donc je suis un peu coincé. Makefile: INC = ../mht #C++ = CC C++ = g++ #C++FLAGS = -O #C++FLAGS = -O -D__SGICC__ -DSDBG C++FLAGS = -O -I../mht build = $(C++) $(C++FLAGS) -o $@ touch = touch $@ trackCorners: param.h motionModel.h $(INC)/assign.h \ trackCorners.o motionModel.o $(build) trackCorners.o motionModel.o \ -L ../mht -lmht -lm #-lmht motionModel.o: motionModel.c motionModel.h param.h \ $(INC)/except.h $(INC)/mdlmht.h $(INC)/matrix.h\ $(INC)/safeglobal.h $(INC)/mht.h $(INC)/list.h $(INC)/tree.h \ $(INC)/links.h $(INC)/vector.h $(C++) -c $(C++FLAGS) motionModel.c trackCorners.o: trackCorners.c motionModel.h $(INC)/except.h $(C++) -c $(C++FLAGS) trackCorners.c clean: rm *.o Merci si pouvez me donner un truc pour comprendre.

AltStyle によって変換されたページ (->オリジナル) /