Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » compile a *.ccp File
compile a *.ccp File [message #85438] Tue, 11 November 2003 16:06 Go to next message
Eclipse UserFriend
Originally posted by: sonstiges.kod-clan.net

Hi,

I have installed the PlugIn fpr C/C++. But I can not compile the *.cpp
File. I have read the Help, but I get following message:
____________________________________________________________ ______________
make -k clean all
MAKE Version 5.2 Copyright (c) 1987, 2000 Borland
Incorrect command line argument: -k

Syntax: MAKE [options ...] target[s]
-B Builds all targets regardless of dependency dates
...
-? or -h Prints this message
Options marked with '+' are on by default. To turn off a default
option follow it by a '-', for example: -a-
____________________________________________________________ ______________


The makefile:
____________________________________________________________ ______________
all: ***.exe

clean:
rm main.o ***.exe

hello.exe: main.o
g++ -g -o *** main.o

main.o:
g++ -c -g ***.cpp
____________________________________________________________ ______________


How can I compile the *.cpp File? Please help.

nemesis
Re: compile a *.ccp File [message #85454 is a reply to message #85438] Tue, 11 November 2003 20:22 Go to previous messageGo to next message
Eclipse UserFriend
Nemesis schrieb:
> Hi,
>
> I have installed the PlugIn fpr C/C++. But I can not compile the *.cpp
> File. I have read the Help, but I get following message:

You read, that the CDT right now is mainly adapted to GNU Tools?

____________________________________________________________ ______________
> make -k clean all
> MAKE Version 5.2 Copyright (c) 1987, 2000 Borland
> Incorrect command line argument: -k

Check if Borland make has some kind of option saying "go ahead even if
errors occur", which
option -k stays for in GNU make.

> Syntax: MAKE [options ...] target[s]
> -B Builds all targets regardless of dependency dates
> ..
> -? or -h Prints this message
> Options marked with '+' are on by default. To turn off a default
> option follow it by a '-', for example: -a-
> ____________________________________________________________ ______________
>
>
> The makefile:
> ____________________________________________________________ ______________
> all: ***.exe

I personally dont know Borland make yet, is *** the right thing here?

> clean:
> rm main.o ***.exe
>
> hello.exe: main.o
> g++ -g -o *** main.o
>
> main.o:
> g++ -c -g ***.cpp

What are you using? Borland Tools or GNU? (g++)

> ____________________________________________________________ ______________
>
>
> How can I compile the *.cpp File? Please help.
>
> nemesis
>
Re: compile a *.ccp File [message #85485 is a reply to message #85438] Wed, 12 November 2003 13:32 Go to previous message
Eclipse UserFriend
Originally posted by: se01036.fh-hagenberg.at

You haven't mentioned what operation system you are using. Because of the
fact that i don't know any Borland tool for unix/linux I assume you're a
Windows user:

Your plugin uses the Borland make (for example part of borland pascal 7.0)
instead of the gnu make program. The CDT plugin only works with the gnu make
program. This is for example included in cygwin, a Linux-like environment
for Windows.

So if you haven't already installed cygwin download it from www.cygwin.com
and install it. Then add the /bin directory of your cygwin installation to
the system path variable. To guarantee that CDT uses the make program of
cygwin you have to remove the entry in the system path variable that refers
to the the borland make program (that will probably be a path to some
Borland development tool)

I hope that will help you ...

Roland

"Nemesis" <sonstiges@kod-clan.net> schrieb im Newsbeitrag
news:borj0i$f25$1@eclipse.org...
> Hi,
>
> I have installed the PlugIn fpr C/C++. But I can not compile the *.cpp
> File. I have read the Help, but I get following message:
> ____________________________________________________________ ______________
> make -k clean all
> MAKE Version 5.2 Copyright (c) 1987, 2000 Borland
> Incorrect command line argument: -k
>
> Syntax: MAKE [options ...] target[s]
> -B Builds all targets regardless of dependency dates
> ..
> -? or -h Prints this message
> Options marked with '+' are on by default. To turn off a default
> option follow it by a '-', for example: -a-
> ____________________________________________________________ ______________
>
>
> The makefile:
> ____________________________________________________________ ______________
> all: ***.exe
>
> clean:
> rm main.o ***.exe
>
> hello.exe: main.o
> g++ -g -o *** main.o
>
> main.o:
> g++ -c -g ***.cpp
> ____________________________________________________________ ______________
>
>
> How can I compile the *.cpp File? Please help.
>
> nemesis
>
Previous Topic:Internal error before manual build
Next Topic:c editor with Eclipse M4 + cdt 1.2
Goto Forum:
  


Current Time: Fri Sep 19 04:21:40 EDT 2025

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

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

Back to the top