Sign in Join

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

Mailing lists / lazarus / 2000-05

Error compiling compileroptions.pp

4 messages · 4 people ·

Reply by email Subscribe to this list Your subscription

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

Vincent Snijders

Hi,
When I tried to compile lazarus I got an error compiling compileroptions.

This is due to contructs like

    tempsw += '2';

These construct can be compiled with -Sc, but the make doesn't do so.

Is there a compiler directive ( something {$Sc}) which can be put in the source, so that I don't need to include the compiler switch at the command line?

Or should I replace these lines with the more pascal syntax:
    tmpsw := tempsw +'2';

Vincent Snijders

Reply by email

Curtis White
to Vincent Snijders

Oops! Sorry about that. I put them in there that way because it was faster while I was trying to get it to work. Then I forgot to go fix them once I had it working.

Curtis

Vincent Snijders wrote 16 lines
Hi, When I tried to compile lazarus I got an error compiling compileroptions. This is due to contructs like tempsw += '2'; These construct can be compiled with -Sc, but the make doesn't do so. Is there a compiler directive ( something {$Sc}) which can be put in the source, so that I don't need to include the compiler switch at the command line? Or should I replace these lines with the more pascal syntax: tmpsw := tempsw +'2'; Vincent Snijders

Reply by email

Marc Weustink
to Vincent Snijders: When I tried to compile lazarus I got an error compiling compileroptions. This is due to…
Vincent Snijders wrote 6 lines
Hi, When I tried to compile lazarus I got an error compiling compileroptions. This is due to contructs like tempsw += '2'; These construct can be compiled with -Sc, but the make doesn't do so.

Yuck

Show quoted text 6 lines
Is there a compiler directive ( something {$Sc}) which can be put in the source, so that I don't need to include the compiler switch at the command line? Or should I replace these lines with the more pascal syntax: tmpsw := tempsw +'2';

I prefer the last. It might be a nice C feature, but keep it to C. This is pascal.

Just my 2c

Marc

Reply by email

Florian Klaempfl
to Marc Weustink
Marc Weustink wrote 20 lines
At 23:51 01-05-2000 +0200, Vincent Snijders wrote: >Hi, >When I tried to compile lazarus I got an error compiling compileroptions. > >This is due to contructs like > tempsw += '2'; >These construct can be compiled with -Sc, but the make doesn't do so. Yuck >Is there a compiler directive ( something {$Sc}) which can be put in the >source, so that I don't need to include the compiler switch at the command >line? > >Or should I replace these lines with the more pascal syntax: > tmpsw := tempsw +'2'; I prefer the last. It might be a nice C feature, but keep it to C. This is pascal.

After 1.0 this will be optmized by the compiler. It isn't done currently because we don't want new features before 1.0

Reply by email