Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » Cygwin + CDT issues and doubts
Cygwin + CDT issues and doubts [message #208001] Wed, 16 January 2008 08:11 Go to next message
Eclipse UserFriend
Originally posted by: darioros.gmail.com

Hi,
I'm a newcomer in Eclipse CDT. I've been using eclipse for Java, php,
javascript, html and now I want to move to more serius stuff. Anyway I'm
facing various annoyances...

Let's say I'm using eclipse 3.3.1 with CDT 4.0.1 on windows. I've choosen
to use Cygwin GCC.

First one: Project types. Tutorials all around the web talk about Managed
C or C++ projects... Well my CDT package doesn't give this choice because
I can just create C or C++ projects (no managed). Later it lets you choose
between binary or makefile project. But not a word about managed. Well,
I've tried to install CDT on linux and Managed pops out. But right now I
want to code under windows for various reasons so if someone has a clear
explanation of this I'd be very happy to hear it.

Second one: header inclusion and libraries... well... hell on heart. While
the simplest Hello World app compiles and runs (in the cygwin console of
course..) I really can't get work even the most simple code that uses
another cygwin lib. For example I wanted to try a Hello World GTK example
in C. No way it gets crazy. The first problem is that my cygwin
installation has gtk located in usr/include/gtk-2.0 . So if I add this
directory to the C includes it won't find it (with #include <gtk/gtk.h> as
in the example I'm working on). If I put gtk-2.0/gtk/gtk.h it doesn't sat
anymore gtk/gtk.h not found, but it fails to recognize all of the symbols
that are defined in these files. So lot's of errors come out. If I try to
do a C++ project (and that's what I want to do in the end), if I put the
includes in the above way it gives the same results. If I put the includes
to C++ includes it complains about hundreds of errors in the headers. I
really can't get this working. People suggested my to symlink gtk-2.0 to
gtk and try this way. But doesn't work. Even with a folder rename.

I always had troubles using GCC and other libraries, if you don't have a
solution for this particular issues I'd appreciate some general reference
in using includes and libs. ...yes using Visual Studio killed my skills :)

I hope I've been clear enough... Thanks all.
Re: Cygwin + CDT issues and doubts [message #208041 is a reply to message #208001] Wed, 16 January 2008 10:05 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: dmsubs.NOSPAM.consertum.com

--
Derek


Dario wrote:
> Hi, I'm a newcomer in Eclipse CDT. I've been using eclipse for Java,
> php, javascript, html and now I want to move to more serius stuff.
> Anyway I'm facing various annoyances...
> Let's say I'm using eclipse 3.3.1 with CDT 4.0.1 on windows. I've
> choosen to use Cygwin GCC.
> First one: Project types. Tutorials all around the web talk about
> Managed C or C++ projects... Well my CDT package doesn't give this
> choice because I can just create C or C++ projects (no managed). Later
> it lets you choose between binary or makefile project. But not a word
> about managed. Well, I've tried to install CDT on linux and Managed pops
> out. But right now I want to code under windows for various reasons so
> if someone has a clear explanation of this I'd be very happy to hear it.
CDT 4.0 merged the concept of Managed and Standard make projects. I doubt that
all the tutorial have been updated.
If you just create a project, by default it is equivalent to the old-style Make
projects.

> Second one: header inclusion and libraries... well... hell on heart.
> While the simplest Hello World app compiles and runs (in the cygwin
> console of course..) I really can't get work even the most simple code
> that uses another cygwin lib. For example I wanted to try a Hello World
> GTK example in C. No way it gets crazy. The first problem is that my
> cygwin installation has gtk located in usr/include/gtk-2.0 . So if I add
> this directory to the C includes it won't find it (with #include
> <gtk/gtk.h> as in the example I'm working on). If I put
> gtk-2.0/gtk/gtk.h it doesn't sat anymore gtk/gtk.h not found, but it
> fails to recognize all of the symbols that are defined in these files.
> So lot's of errors come out. If I try to do a C++ project (and that's
> what I want to do in the end), if I put the includes in the above way it
> gives the same results. If I put the includes to C++ includes it
> complains about hundreds of errors in the headers. I really can't get
> this working. People suggested my to symlink gtk-2.0 to gtk and try this
> way. But doesn't work. Even with a folder rename.

You need to add the include directories to the compiler settings:
Properties->C/C++ Build->Settings->C Compiler->Directories.

> I always had troubles using GCC and other libraries, if you don't have a
> solution for this particular issues I'd appreciate some general
> reference in using includes and libs. ...yes using Visual Studio killed
> my skills :)
>
> I hope I've been clear enough... Thanks all.
>
>
Re: Cygwin + CDT issues and doubts [message #208048 is a reply to message #208001] Wed, 16 January 2008 10:05 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: dmsubs.NOSPAM.consertum.com

--
Derek


Dario wrote:
> Hi, I'm a newcomer in Eclipse CDT. I've been using eclipse for Java,
> php, javascript, html and now I want to move to more serius stuff.
> Anyway I'm facing various annoyances...
> Let's say I'm using eclipse 3.3.1 with CDT 4.0.1 on windows. I've
> choosen to use Cygwin GCC.
> First one: Project types. Tutorials all around the web talk about
> Managed C or C++ projects... Well my CDT package doesn't give this
> choice because I can just create C or C++ projects (no managed). Later
> it lets you choose between binary or makefile project. But not a word
> about managed. Well, I've tried to install CDT on linux and Managed pops
> out. But right now I want to code under windows for various reasons so
> if someone has a clear explanation of this I'd be very happy to hear it.
CDT 4.0 merged the concept of Managed and Standard make projects. I doubt that
all the tutorial have been updated.
If you just create a project, by default it is equivalent to the old-style Make
projects.

> Second one: header inclusion and libraries... well... hell on heart.
> While the simplest Hello World app compiles and runs (in the cygwin
> console of course..) I really can't get work even the most simple code
> that uses another cygwin lib. For example I wanted to try a Hello World
> GTK example in C. No way it gets crazy. The first problem is that my
> cygwin installation has gtk located in usr/include/gtk-2.0 . So if I add
> this directory to the C includes it won't find it (with #include
> <gtk/gtk.h> as in the example I'm working on). If I put
> gtk-2.0/gtk/gtk.h it doesn't sat anymore gtk/gtk.h not found, but it
> fails to recognize all of the symbols that are defined in these files.
> So lot's of errors come out. If I try to do a C++ project (and that's
> what I want to do in the end), if I put the includes in the above way it
> gives the same results. If I put the includes to C++ includes it
> complains about hundreds of errors in the headers. I really can't get
> this working. People suggested my to symlink gtk-2.0 to gtk and try this
> way. But doesn't work. Even with a folder rename.

You need to add the include directories to the compiler settings:
Properties->C/C++ Build->Settings->C Compiler->Directories.

> I always had troubles using GCC and other libraries, if you don't have a
> solution for this particular issues I'd appreciate some general
> reference in using includes and libs. ...yes using Visual Studio killed
> my skills :)
>
> I hope I've been clear enough... Thanks all.
>
>
Re: Cygwin + CDT issues and doubts [message #208160 is a reply to message #208001] Thu, 17 January 2008 10:27 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: lars.uffmann.dlr.de

Dario wrote:
> First one: Project types. Tutorials all around the web talk about
> Managed C or C++ projects... Well my CDT package doesn't give this
> choice because I can just create C or C++ projects (no managed).

Apart from what Derek said, I had the same problem, and it led me to
uninstall everything and install eclipse europa (NOT the CDT package) -
then I just used the integrated C++ Projects, which include Managed Make :)

HTH,

Lars
Re: Cygwin + CDT issues and doubts [message #209517 is a reply to message #208048] Sat, 09 February 2008 14:59 Go to previous message
Eclipse UserFriend
Originally posted by: hilal.arslan.bte.mam.gov.tr

When there is no supported toolchain;
C++ project wizard shows only the makefile projects, no managed projects.
Check your cygwin installation, environment variables (ex: PATH=
;c:\cygwin\bin), maybe install another location, try using minGW instead
of cygwin since debugging with cygwin is a potential challange.
Previous Topic:Projects in projects in package explorer which I've seen in Windriver Workbench
Next Topic:Customising makefiles
Goto Forum:
  


Current Time: Sun Jun 22 22:21:27 EDT 2025

Powered by FUDForum. Page generated in 0.09379 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top