Board index » cppbuilder » make and options

make and options


2005-08-09 11:39:24 PM
cppbuilder20
Hi,
I have a foo.mak file already setup for the build environment here. Assume I can't touch it, or if I do, I have to do an AWFUL lot of time consuming admin work (long story, you don't want to know:) :).
The source I'm working with here is riddled with warnings. so much so that each time I make the project it takes me ages to navigate my way up to the appropriate error line and make my corrections. I would like to supress these warning messages (I know, I know... I should heed them but this source is YEARs old and I ain't going to start refactoring/correcting it all now).
Anyways, my question is this;
is there any option I can pass to make such that errors only will be reported? somethign along the lines of
make -ONLY_REPORT_ERRORS
I can't see many options available when I run
Quote
make /?
Any ideas or tips. I can update the .mak file if really needs be, I suspect thats what I'll have to do.
thanks a lot
G
 
 

Re:make and options

I assume that you want to cut down the compiler warnings?
If so, you need to change the compiler rule so that it displays less
warnings.
This should be on a line in the makefile similar to
.cpp.obj:
bcc32 line with lots of options
You should add the appropriate bcc32 option to make the compiler quieter.
(But as I don't use it I can't tell you what that is....)
HTH Pete
"grahamoooOh" < XXXX@XXXXX.COM >wrote in message
Quote

Hi,

I have a foo.mak file already setup for the build environment here. Assume
I can't touch it, or if I do, I have to do an AWFUL lot of time consuming
admin work (long story, you don't want to know:) :).

The source I'm working with here is riddled with warnings. so much so that
each time I make the project it takes me ages to navigate my way up to the
appropriate error line and make my corrections. I would like to supress
these warning messages (I know, I know... I should heed them but this
source is YEARs old and I ain't going to start refactoring/correcting it
all now).

Anyways, my question is this;

is there any option I can pass to make such that errors only will be
reported? somethign along the lines of

make -ONLY_REPORT_ERRORS

I can't see many options available when I run

>make /?

Any ideas or tips. I can update the .mak file if really needs be, I
suspect thats what I'll have to do.

thanks a lot

G
 

Re:make and options

"Pete Fraser" < XXXX@XXXXX.COM >wrote in message
Quote
I assume that you want to cut down the compiler warnings?
If so, you need to change the compiler rule so that it displays less
warnings.
This should be on a line in the makefile similar to
.cpp.obj:
bcc32 line with lots of options

You should add the appropriate bcc32 option to make the compiler quieter.
(But as I don't use it I can't tell you what that is....)
I think that it is -w-.
HTH
Jonathan
 

{smallsort}

Re:make and options

Go to Project|Options...|Compiler and click Selected under Warnings.
Then click Warnings and uncheck those warnings you don't want.
Hank
 

Re:make and options

Quote
make -ONLY_REPORT_ERRORS

I can't see many options available when I run
This probably won't work, but is easy enough that it is worth a try
make -ffoo.mak 1>nul.txt
This will redirect stdout to nul.txt, leaving stderr printing to the
console. If bcc32 prints warnings to stdout and errors to stderr, then
this will work. However, I don't know if it does this or not. Like I
said, worth a try, but don't get your hopes up.
H^2
 

Re:make and options

Hi thanks for that, the -w- options did the trick. Now I get 4 lines of output when I compile instead of 4000 :)
cheers
GrahamO
"Harold Howe [TeamB]" < XXXX@XXXXX.COM >wrote:
Quote

>make -ONLY_REPORT_ERRORS
>
>I can't see many options available when I run

This probably won't work, but is easy enough that it is worth a try

make -ffoo.mak 1>nul.txt

This will redirect stdout to nul.txt, leaving stderr printing to the
console. If bcc32 prints warnings to stdout and errors to stderr, then
this will work. However, I don't know if it does this or not. Like I
said, worth a try, but don't get your hopes up.

H^2