Author Topic: On build errors, but application started after F9  (Read 4861 times)

Offline kisoft

  • Almost regular
  • **
  • Posts: 194
On build errors, but application started after F9
« on: November 14, 2005, 09:23:04 am »
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:
https://github.com/kisoft/cbmakefilegen

Offline rickg22

  • Lives here!
  • ****
  • Posts: 2283
Re: On build errors, but application started after F9
« Reply #1 on: November 15, 2005, 06:51:52 pm »
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?

Offline kisoft

  • Almost regular
  • **
  • Posts: 194
Re: On build errors, but application started after F9
« Reply #2 on: November 16, 2005, 07:00:01 am »
...
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:
https://github.com/kisoft/cbmakefilegen

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4315
    • Code::Blocks IDE
Re: On build errors, but application started after F9
« Reply #3 on: November 16, 2005, 08:50:34 am »
Quote
GNU 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...

Offline kisoft

  • Almost regular
  • **
  • Posts: 194
Re: On build errors, but application started after F9
« Reply #4 on: November 16, 2005, 09:40:59 am »
Quote
GNU 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:
https://github.com/kisoft/cbmakefilegen