我正在Eclipse中开发我的C ++代码。我之前在stackoverflow上看到过这个问题。但我还是没有修改过makefile。我只修改了我的cpp文件..我不知道这个错误是怎么来的! 这是错误日志:
Invoking: GCC C++ Linker
g++ -L/home/linksmart/development/installs/smartdna_build/opencv-2.4.6.1/lib -o "smartDNAReaderMerged" ./src/zbar/BarcodeIdentifier.o ./src/xml/pugixml.o ./src/opencv/CircleValidator.o ./src/opencv/ImageProcessor\ (copy).o ./src/opencv/ImageProcessor.o ./src/mysql/Database.o ./src/models/AudioPlayer.o ./src/models/Camera.o ./src/models/CredentialConfigurator.o ./src/algorithms/CircleSorter.o ./src/algorithms/CredentialValidator.o ./src/algorithms/LabelValidator.o ./src/ApplicationManager.o ./src/encryptor.o ./src/login.o ./src/main.o ./src/motion.o ./src/smartdna.o ./src/sound.o ./src/webservice.o -lfltk_images -lfltk_gl -lfltk_cairo -lfltk -lcurl -lzbar -lsqlite3 -lasound -lmysqlcppconn -lMagick++ -lMagickCore -lopencv_core -lopencv_imgproc -lopencv_highgui -lopencv_video -lopencv_contrib -lopencv_legacy
/bin/sh: -c: line 0: syntax error near unexpected token `('
/bin/sh: -c: line 0: `g++ -L/home/linksmart/development/installs/smartdna_build/opencv-2.4.6.1/lib -o "smartDNAReaderMerged" ./src/zbar/BarcodeIdentifier.o ./src/xml/pugixml.o ./src/opencv/CircleValidator.o ./src/opencv/ImageProcessor\ (copy).o ./src/opencv/ImageProcessor.o ./src/mysql/Database.o ./src/models/AudioPlayer.o ./src/models/Camera.o ./src/models/CredentialConfigurator.o ./src/algorithms/CircleSorter.o ./src/algorithms/CredentialValidator.o ./src/algorithms/LabelValidator.o ./src/ApplicationManager.o ./src/encryptor.o ./src/login.o ./src/main.o ./src/motion.o ./src/smartdna.o ./src/sound.o ./src/webservice.o -lfltk_images -lfltk_gl -lfltk_cairo -lfltk -lcurl -lzbar -lsqlite3 -lasound -lmysqlcppconn -lMagick++ -lMagickCore -lopencv_core -lopencv_imgproc -lopencv_highgui -lopencv_video -lopencv_contrib -lopencv_legacy'
make: *** [smartDNAReaderMerged] Error 1