Forum > IDE/CodeTools

Missing conditional windows compiling switches.

(1/3) > >>

KodeZwerg:
Since my thread over here https://forum.lazarus.freepascal.org/index.php?topic=61335.msg461190#msg461190 was not successful I would have a suggestion to make for upcoming releases of Lazarus IDE.
Please do add in the .lpr file a proper way for Windows based applications.

A console application need {$APPTYPE CONSOLE} (and a GUI application can have {$APPTYPE GUI})
Of course it shall have checks like {$IFDEF MSWINDOWS} etc....

Thanks in advance!

KodeZwerg:

--- Quote from: hi friends on November 24, 2022, 07:10:02 pm ---Hi friend.
I tried to understand but don't understand what the hell you're talking about.
Please help friend.  :)

--- End quote ---
Since we are in the suggestions forum, there is no need for you to understand.

KodeZwerg:

--- Quote from: hi friends on November 24, 2022, 07:30:45 pm ---Here he have an exemplar of the species Boomer Aeternus. Right, you're directing this to the top dogs only, not me, not anyone else. Sorry friend.

--- End quote ---
I apology for my rude answer, without that conditional switch a console application will having a bad end. I hope that is answer enough.

Bart:
You can set it in compiler options.
Uncheck Win32 GUI application in "Config and Target".

Bart

KodeZwerg:

--- Quote from: Bart on November 24, 2022, 09:24:36 pm ---You can set it in compiler options.
Uncheck Win32 GUI application in "Config and Target".

Bart

--- End quote ---
It does not add the needed line, on image i show options, i confirmed them, re-opened options to make snapshot.

Navigation

[0] Message Index

[#] Next page

Go to full version