Hi,
I suddenly get a strange error when I try to build project within the lazarus ide and when I try to build it using lazbuild. At first I thought it is a problem with windres as the error message is (using the IDE):
windres: preprocessing failed.
bla.lpr(20,1) Error: Error while compiling resources
bla.lpr(20,1) Fatal: There were 1 errors compiling module, stopping
But compiling the RC-file with windres worked without any errors.
Using lazbuild I get the following output:
> \dev\Lazarus\lazbuild.exe bla.lpi
TCompiler.Compile WorkingDir="Z:\Dev\Projekte\bla\" CompilerFilename="Z:\Dev\fpc\2.3.1\bin\i386-win32\fpc.exe" CompilerParams=" -MObjFPC -Sc
gi -O1 -gl -WG -vewnhi -l -Fu..\..\Lazarus\lcl\units\i386-win32\ -Fu..\..\Lazarus\lcl\units\i386-win32\win32\ -Fu..\..\Lazarus\packager\unit
s\i386-win32\ -Fu. -obla.exe -dLCL -dLCLwin32 bla.lpr"
[TCompiler.Compile] CmdLine="Z:\Dev\fpc\2.3.1\bin\i386-win32\fpc.exe -MObjFPC -Scgi -O1 -gl -WG -vewnhi -l -Fu..\..\Lazarus\lcl\units\i386-
win32\ -Fu..\..\Lazarus\lcl\units\i386-win32\win32\ -Fu..\..\Lazarus\packager\units\i386-win32\ -Fu. -obla.exe -dLCL -dLCLwin32 bla.lpr"
Hint: Start of reading config file Z:\Dev\fpc\2.3.1\bin\i386-win32\fpc.cfg
Hint: End of reading config file Z:\Dev\fpc\2.3.1\bin\i386-win32\fpc.cfg
Free Pascal Compiler version 2.3.1 [2009/01/28] for i386
Copyright (c) 1993-2008 by Florian Klaempfl
Target OS: Win32 for i386
Compiling bla.lpr
Compiling resource Z:\Dev\Projekte\bla\bla.rc
Z:\Dev\MinGW\bin\windres.exe: preprocessing failed.
bla.lpr(20,1) Error: Error while compiling resources
bla.lpr(20,1) Fatal: There were 1 errors compiling module, stopping
ERROR: failed compiling of project Z:\Dev\Projekte\bla\bla.lpi
Then I used the compiler commandline on I found in the lazbuild output and I got a surprise:
> Z:\Dev\fpc\2.3.1\bin\i386-win32\fpc.exe -MObjFPC -Scgi -O1 -gl -WG -vewnhi -l -Fu..\..\Lazarus\lcl\units\i386-win32\ -Fu..\..\Lazarus\lcl
\units\i386-win32\win32\ -Fu..\..\Lazarus\packager\units\i386-win32\ -Fu. -obla.exe -dLCL -dLCLwin32 bla.lpr
Hint: Start of reading config file Z:\Dev\fpc\2.3.1\bin\i386-win32\fpc.cfg
Hint: End of reading config file Z:\Dev\fpc\2.3.1\bin\i386-win32\fpc.cfg
Free Pascal Compiler version 2.3.1 [2009/01/28] for i386
Copyright (c) 1993-2008 by Florian Klaempfl
Target OS: Win32 for i386
Compiling bla.lpr
Compiling resource Z:\Dev\Projekte\bla\bla.rc
Compiling resource bla.or
Linking bla.exe
5243 lines compiled, 2.2 sec , 1227408 bytes code, 475352 bytes data
2 hint(s) issued
Suddenly it worked. But only when I do not use the IDE or lazbuild.
"bla" is an empty application created by the "New Application" template.
SVN revision of fpc: 12620
SVN revision of lazarus: 18467