Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2009-01

Windres regression?

4 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Paul Michell

I have just installed today's snapshot for win32 with fp 2.2.3:

2009-01-03 v0.9.27 rUnknown i386-win32-win32/win64

If I create a new project and assign a project icon, version information or select the manifest option (anything that will create a .rc file) compilation fails with:

windres: C:\Documents and Settings\Paul Michell\My Documents\Projects\project1.rc:1: syntax error
Hint: Start of reading config file C:\Lazarus\fpc\2.2.3\bin\i386-win32\fpc.cfg Hint: End of reading config file C:\Lazarus\fpc\2.2.3\bin\i386-win32\fpc.cfg Free Pascal Compiler version 2.2.3 [2009/01/03] for i386 Copyright (c) 1993-2008 by Florian Klaempfl
Target OS: Win32 for i386
Compiling project1.lpr
Compiling Unit1.pas
Compiling resource C:\Documents and Settings\Paul Michell\My Documents\Projects\project1.rc
c:\Lazarus\fpc\2.2.3\bin\i386-win32\windres.exe: C:\Documents and Settings\Paul Michell\My Documents\Projects\project1.rc:1: syntax error project1.lpr(20,1) Error: Error while linking
project1.lpr(20,1) Fatal: There were 1 errors compiling module, stopping

This used to work with my prior snapshot installation from: 2008-12-09 v0.9.27 rUnknown i386-win32-win32/win64.

The issue seems to be the existance of spaces in the project folder name. It will work if the source files are moved to a folder with no spaces in the path. I habitually create projects in a folder within the 'My Documents' folder so I will always have spaces in the project path.

I know there is an issue with installing Lazarus itself to a folder with spaces in the path so I let the installer use the default 'C:\Lazarus'.

Is this the same issue as:

0011484: Windows: windres does not support using directories with spaces

If so I don't understand why it used to work before Christmas?

Thanks,

Paul Michell

Reply by email

Paul Ishenin
to Paul Michell
Paul Michell wrote 6 lines
Is this the same issue as: 0011484: Windows: windres does not support using directories with spaces If so I don't understand why it used to work before Christmas?

Yes, it is the same issue. Maybe it worked before xmass since manifest info was embedded into .rc and now it is placed in a separate file (due to GoRc troubles).

Best regards,
Paul Ishenin.

Reply by email

Paul Michell
to Paul Ishenin

Thanks Paul,

Show quoted text 9 lines
> Is this the same issue as: > > 0011484: Windows: windres does not support using directories with spaces > > If so I don't understand why it used to work before Christmas? Yes, it is the same issue. Maybe it worked before xmass since manifest info was embedded into .rc and now it is placed in a separate file (due to GoRc troubles).

So if I understand the bug report correctly, if I want to use Windres features, I will have to avoid project paths with spaces in until Lazarus is based on a 2.3.x compiler?

Reply by email

Paul Ishenin
to Paul Michell
Paul Michell wrote
So if I understand the bug report correctly, if I want to use Windres features, I will have to avoid project paths with spaces in until Lazarus is based on a 2.3.x compiler?

As I know 2.3.1 compiler still has this problem. But yes you need to avoid spaces in the paths.

Best regards,
Paul Ishenin.

Reply by email