On 2015-06-19 11:22, aradeonas wrote:
> About Compiler Defines,until now I couldn't make them work,I don't know
> why! can you show me an simple example?

Attached is an example which has common code (with IFDEF's), a console
Server app (non GUI), and a Client (gui) app.

Notes:
 - In both the Client and Server apps there is a IDE Macro in
   "Project Options / Compiler Options / Additions and Overrides" that
   defines the location of the common code. Change that to match your
   location. I normally set this to the root of my project directory.
 - In the Client app it defines a "ClientApp" compiler define in
   "Project Options / Compiler Options / Other". The server app doesn't
   have this, and that is what allows you to separate the dependencies
   in the common code.

No Lazarus Packages are used, other than the LCL.lpk for the client app.

Save the attachment and remove the extra extension '.RemoveMe', then
unpack as normal. The extra file extension is added to circumvent stupid
attachment rules in some email servers.

Regards,
  - Graeme -

-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/

Attachment: exampl.tar.gz.RemoveMe
Description: Binary data

--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to