Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » cant build
cant build [message #172066] Thu, 21 September 2006 21:10 Go to next message
Eclipse UserFriend
Originally posted by: marceloazevedo.jr.gmail.com

Hi. There is something wrong here... and I'd like some help lease.

I followed all the steps to create a simple project
*file -> project -> standard make c++ project -> name: hello

then..

*right click on hello -> new file -> name main.c -> finish

code
---
#include <stdio.h>

void main()
{
printf("hello\n");
}
---

save and build and the console shows:

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
-Dsymbol[=string] Defines symbol [equal to string]
-Idirectory Names an include directory
-K Keeps (does not erase) temporary files created by
MAKE
-N Increases MAKE's compatibility with NMAKE
-Wfilename Writes MAKE to filename updating all non-string
options
-Usymbol Undefine symbol
-ffilename Uses filename as the MAKEFILE
-a Performs auto-dependency checks for include files
-c Caches auto-dependency information
-e Ignores redefinition of environment variable macros
-i Ignores errors returned by commands
-l+ Enables use of long command lines
-m Displays the date and time stamp of each file
-n Prints commands but does not do them
-p Displays all macro definitions and implicit rules
-q Returns zero if target is up-to-date and nonzero
if it is not (for use in batch files)
-r Ignores rules and macros defined in BUILTINS.MAK
-s Silent, does not print commands before doing them
-? 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-

---
what can I do?? bellow the hello icon on the left there is just the main.c
with stdio.h and main bellow main.c

txs
Re: cant build [message #172136 is a reply to message #172066] Fri, 22 September 2006 09:10 Go to previous message
Eclipse UserFriend
Originally posted by: dmsubs.NOSPAM.consertum.com

I see you are using Borland make. CDT is expecting to use a GNU compatible make.
The options for GNU and Borland make are different. CDT is using the '-k' option
(to ignore errors) which (according to your listing below) equates to the
Borland '-i' option.

I don't know of a *simple* way of making this change (It is defined in the
plugin.xml file for the CDT Managed Build System).

I suggest you need to get yourself a copy of a GNU compatible make.

--
Derek


marcelo wrote:
> Hi. There is something wrong here... and I'd like some help lease.
>
> I followed all the steps to create a simple project
> *file -> project -> standard make c++ project -> name: hello
>
> then..
>
> *right click on hello -> new file -> name main.c -> finish
>
> code
> ---
> #include <stdio.h>
>
> void main()
> {
> printf("hello\n");
> }
> ---
>
> save and build and the console shows:
>
> 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
> -Dsymbol[=string] Defines symbol [equal to string]
> -Idirectory Names an include directory
> -K Keeps (does not erase) temporary files created by MAKE
> -N Increases MAKE's compatibility with NMAKE
> -Wfilename Writes MAKE to filename updating all non-string
> options
> -Usymbol Undefine symbol
> -ffilename Uses filename as the MAKEFILE
> -a Performs auto-dependency checks for include files
> -c Caches auto-dependency information
> -e Ignores redefinition of environment variable macros
> -i Ignores errors returned by commands
> -l+ Enables use of long command lines
> -m Displays the date and time stamp of each file
> -n Prints commands but does not do them
> -p Displays all macro definitions and implicit rules
> -q Returns zero if target is up-to-date and nonzero
> if it is not (for use in batch files)
> -r Ignores rules and macros defined in BUILTINS.MAK
> -s Silent, does not print commands before doing them
> -? 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-
>
> ---
> what can I do?? bellow the hello icon on the left there is just the
> main.c with stdio.h and main bellow main.c
>
> txs
>
>
>
>
>
Previous Topic:"no binaries"
Next Topic:Error starting Eclipse 3.2
Goto Forum:
  


Current Time: Thu Mar 28 12:03:09 GMT 2024

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

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

Back to the top