Code::Blocks Forums
Developer forums (C::B DEVELOPMENT STRICTLY!) => Development => Topic started by: kisoft 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]
-
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?
-
...
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.
-
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:
-
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.