News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

On build errors, but application started after F9

Started by kisoft, November 14, 2005, 09:23:04 AM

Previous topic - Next topic

kisoft

Project maked with my Makefile. Project create DLL for Win application (Dynamic Library).

After edit source file, I press Ctrl-F9. In "Build log" I see errors (see screenshot).
If I press F9, then application is started after building (with errors). Why?
I see on screenshot, that a building process ended with "1 errors, 0 warnings".

Why not controlled an error count before start application?
It's feature or bug?


[attachment deleted by admin]
OS: WinXPSP3
wxWidgets: 2.8.12
CodeBlocks: Master github cbMakefileGen plugin:
[url="https://github.com/kisoft/cbmakefilegen"]https://github.com/kisoft/cbmakefilegen[/url]

rickg22

If I press F9, then application is started after building (with errors). Why?

The process was terminated with status 0. AFAIK, GCC exits with status 1 when there's a compiling error. But shouldn't GNUMake do the same?

kisoft

Quote from: rickg22 on November 15, 2005, 06:51:52 PM
...
The process was terminated with status 0. AFAIK, GCC exits with status 1 when there's a compiling error. But shouldn't GNUMake do the same?
I use GNUMake (win version):
GNU Make version 3.79.1, by Richard Stallman and Roland McGrath.
Built for i686-pc-cygwin

keys for build project: --win32 && -j1

I understand your "train of tought".
Errors count not equ 0, what's problem.

Ok, thanks for idea.
I would try solve this trouble with your idea.
OS: WinXPSP3
wxWidgets: 2.8.12
CodeBlocks: Master github cbMakefileGen plugin:
[url="https://github.com/kisoft/cbmakefilegen"]https://github.com/kisoft/cbmakefilegen[/url]

mandrav

QuoteGNU Make version 3.79.1, by Richard Stallman and Roland McGrath.
Built for i686-pc-cygwin

Is there a particular reason you use this version instead of 3.80?  :shock:
Be patient!
This bug will be fixed soon...

kisoft

Quote from: mandrav on November 16, 2005, 08:50:34 AM
QuoteGNU Make version 3.79.1, by Richard Stallman and Roland McGrath.
Built for i686-pc-cygwin
Is there a particular reason you use this version instead of 3.80?  :shock:

We use GNUMake historically. Project started a some years ago yet on OS/2 (IBM) operation system.
I connect to this project a two years ago. All works, we no have reasons for change make.exe.

So, problem was in an other hand.
For build project I exec make.cmd, and after call GNUMake, make.cmd execute another utility.
@GnuMake.exe -j1
@Foo.exe
Errorlevel is broke on script finish, of course.
Now all right!

I understand, main rule:
If a build process have errors, a build process MUST return errorlevel not equ 0.
And second. If a build process returned not equ 0 errorlevel, automatically focused
the "Build messages" window.

PS May be I have reason for use the mingw-make vs GNUMake.
OS: WinXPSP3
wxWidgets: 2.8.12
CodeBlocks: Master github cbMakefileGen plugin:
[url="https://github.com/kisoft/cbmakefilegen"]https://github.com/kisoft/cbmakefilegen[/url]