Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » Installing the C++ Addon
Installing the C++ Addon [message #81054] Wed, 24 September 2003 21:11 Go to next message
Eclipse UserFriend
Originally posted by: fhatfull64.hotmail.com

Hey all.

I know it sounds pretty basic, but I'm confused as to how to install the
C++ tool into eclipse. Ive programmed 3 times in C++ before at school, but
there were no free compilers I could find except for Eclipse. I downloaded
2.1 yesterday, and I just downloaded the C++ addon. How to I install it?
Thanks!

-Fred
Re: Installing the C++ Addon [message #81111 is a reply to message #81054] Thu, 25 September 2003 10:15 Go to previous messageGo to next message
Eclipse UserFriend
Take a look at the last tutorial (it deals with installing CDT under
Windows)
at our website www.cs.umanitoba.ca/~eclipse.
David Scuse

"Fred" <fhatfull64@hotmail.com> wrote in message
news:bktfch$udm$1@eclipse.org...
> Hey all.
>
> I know it sounds pretty basic, but I'm confused as to how to install the
> C++ tool into eclipse. Ive programmed 3 times in C++ before at school, but
> there were no free compilers I could find except for Eclipse. I downloaded
> 2.1 yesterday, and I just downloaded the C++ addon. How to I install it?
> Thanks!
>
> -Fred
>
Re: Installing the C++ Addon [message #81203 is a reply to message #81111] Fri, 26 September 2003 13:38 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: dschaefe.ca.ibm.com

Great tutorial, David! Do you mind if we put a link to it from the CDT
site?

Cheers,
Doug Schaefer

"David Scuse" <scuse@cs.umanitoba.ca> wrote in message
news:bkut6m$6qb$1@eclipse.org...
> Take a look at the last tutorial (it deals with installing CDT under
> Windows)
> at our website www.cs.umanitoba.ca/~eclipse.
> David Scuse
>
> "Fred" <fhatfull64@hotmail.com> wrote in message
> news:bktfch$udm$1@eclipse.org...
> > Hey all.
> >
> > I know it sounds pretty basic, but I'm confused as to how to install the
> > C++ tool into eclipse. Ive programmed 3 times in C++ before at school,
but
> > there were no free compilers I could find except for Eclipse. I
downloaded
> > 2.1 yesterday, and I just downloaded the C++ addon. How to I install it?
> > Thanks!
> >
> > -Fred
> >
>
>
Re: Installing the C++ Addon [message #81260 is a reply to message #81111] Fri, 26 September 2003 15:41 Go to previous message
Eclipse UserFriend
I have to say the same like Doug.

But some little "bugs" found while flying over the tutorial.

The "Hello World" thing misses either "using namespace std;" after the
iostream-include or you have to use std::cout, std::cerr, std::cin and
std::endl.

When compiling C++ files/projects, use the g++ instead of gcc.
Only use gcc when doing C-only projects.
The point is, that g++ also has the stdc++ library path set internally
and usually compiling C++ files with gcc gives errors on not found
symbols. You could also use 'ld' for linking

Your target is main, but you want to delete main.exe!
Though under Windows the target is main.exe.

You use $(MAKE) as var, but gcc not. You could define it like this:
(Actually in GNU make its default, I think)
---
# C compiler and compiler flags
CC = gcc
CFLAGS = -g
# C++ compiler and compiler flags
CXX = g++
CXXFLAGS = -IC:\MinGW\include
# linker flags
LDFLAGS = -lstdc++

C_DEBUG = -g
RM = del /S /Q

..PHONY: all debug clean
..DEFAULT: all
all:
$(MAKE) main

debug:
$(MAKE) "CXXFLAGS+= $(C_DEBUG)" main

clean:
-$(RM) main.exe main.o

main.exe : main.o
$(CXX) -o $@ $^ $(LDFLAGS)

main.o : main.cpp
$(CXX) $(CXXFLAGS) -o $@ -c $<
---

David Scuse wrote:
> Take a look at the last tutorial (it deals with installing CDT under
> Windows)
> at our website www.cs.umanitoba.ca/~eclipse.
> David Scuse
>
> "Fred" <fhatfull64@hotmail.com> wrote in message
> news:bktfch$udm$1@eclipse.org...
>
Previous Topic:GNU-TOOLS
Next Topic:new line at end of file
Goto Forum:
  


Current Time: Fri Apr 25 21:48:25 EDT 2025

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

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

Back to the top