Page 1 of 1

Lazarus console application

Posted: 15.06.2009, 13:38
by ilyasid
Hi

I'm create console application in Lazarus (0.27) fpc 2.2.4. I put an ZConnection into uses section, if I start build my project have error - ZConnection not found. If I create other window application with same actions, build is ok.

Thanks

Posted: 16.06.2009, 12:08
by trupka
Unlike delphi, lazarus generates compiler library path dynamically, by taking into consideration what packages project uses. To use that feature, try to add zcomponent package to project required package list (Project->Project inspector menu).
If that don't work, manually add *\zeos\packages\lazarus\build path to compiler search path for corresponding project.