简体   繁体   中英

Linking projects C++ Cygwin

I have a problem with linking my projects with Eclipse. The linking goed perfect, but everytime I get the same error:

**** Build of configuration Debug for project Dierentuin_test ****

make all 
makefile:43: *** multiple target patterns.  Stop.

**** Build Finished ****

I tried everything, and googled a lot.

I'm using Cygwin in Eclipse and work on a Windows PC. The project works fine without linking, but I really need to link the projects.

I added the .o-files to the Miscellaneous and the includes .

I know there is something wrong with C:/ but I don't not know where to edit. The error occur in the file objects.mk where all the .o-files added as USER_OBJS .

Hope you could help me!

That message:

makefile:43: *** multiple target patterns.  Stop.

tells you that at line 43 of the makefile (normally named Makefile ) has a problem. Look there, and google with what you find there.


  • Do you have the target listed on this line more than once in the makefile?
  • Some voices on the internet say it might have to do with path separators (Windows vs. Unix way) (eg replacing C:/... with C:\\... )
  • In some german blogs they've seen DevC++ polluting Makefiles with error messages

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM