DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 6 of 6
  1. #1
    Join Date
    Apr 2007
    Posts
    68

    eclipse --- cygwin?

    may be it's weird i post this topic in this forum. but i always get the best and most efficient reply in this forum compare to others.

    im using eclipse for c++ and i would like to directly import existing makefile to eclipse. as far as i concern, this is not possible. im using mingw compiler currently. even if i want to manually build the makefile is not easy(or not possible?) anyone know how ? or should i use cygwin instead? if so how to install and run cygwin in eclipse? thanks!!!!

  2. #2
    Join Date
    Dec 2003
    Posts
    3,366
    cygwin is its own thing, it is a unix sim for win32. You can set cygwin g++ to be the compiler for eclipse.

    Eclipse supposedly manages makefiles for you but it supposedly can import as well. Either way, cygwin g++ and make programs work fine from a console window, you can bypass eclipse entirely.

  3. #3
    Join Date
    Mar 2008
    Posts
    1
    Hi I have XP installed with eclipse and Cygwin aswell.
    I have tested CYGWIN on the command line and it works fine.
    I just dont know if it is working correctly in eclipse.
    I made hello world project and tried to make all but I get the following.

    **** Build of configuration Release for project helloworld ****

    make all
    MAKE Version 5.2 Copyright (c) 1987, 2000 Borland
    Error makefile 6: Command syntax error
    Error makefile 11: Command syntax error
    Error makefile 12: Command syntax error
    Error makefile 13: Command syntax error
    Error makefile 14: Command syntax error
    Error makefile 16: Command syntax error
    Error makefile 37: Colon expected
    Error makefile 39: Command syntax error
    *** 8 errors during make ***

    can any one point me in the right direction please. Dont know if the gcc compiler is correctly installed in eclipse but I assume it is and there is something wrong with the makefile.
    HELP.....

  4. #4
    Join Date
    May 2007
    Posts
    843
    As far as i know, uisng eclipse IDE to compiled C++ file is not a good choice.

    You can try Code Block and Dev C++.

  5. #5
    Join Date
    Dec 2003
    Posts
    3,366
    I was never able to make eclipse do anything useful. It was slow and buggy and after about a 2 week fight with it, I deleted the program.

    But I will try to help you...
    first, build and compile your program from the commandline with g++. If you can make it work, then your g++ and cygwin are fine. The next step is to try to figure out why eclipse is broken, which I would say is due to it being a poor tool, but even so there is probably a reason it is not working. You should at least be able to do hello world with it, bad as it is its not *that* bad.

  6. #6
    Join Date
    Dec 2003
    Posts
    3,366
    Oh, I see part of your problem. Your path in windows is set up to use borland's command line tools, and either cygwin or eclipse is trying to call the borland make program not cygwin's, you need to straighten that out!

Similar Threads

  1. Need some help with Eclipse and Java
    By pityocamptes in forum Java
    Replies: 3
    Last Post: 08-30-2006, 08:40 PM
  2. MyEclipse 5.0 Supports Eclipse 3.2
    By jense in forum Java
    Replies: 0
    Last Post: 05-22-2006, 11:13 AM
  3. Replies: 0
    Last Post: 04-21-2006, 01:04 AM
  4. eclipse
    By jonnin in forum C++
    Replies: 26
    Last Post: 11-15-2005, 03:37 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links