On Wed, 30 Jun 2010 13:52:26 +0300
Juha Manninen <[email protected]> wrote:

> Hi,
> 
> I am testing the Delphi converter with a console application. Related to:
>   http://www.lazarus.freepascal.org/index.php/topic,9746
> 
> The converter adds dependency for LCL automatically. I though console apps 
> could need LCL, too, because there are Windows compat functions in units like 
> LCLIntf.

Yes, but you should set the widgetset to nogui.

> However, I get linker errors (copied to the end).
> When I remove the LCL dependency, the program links and runs OK.
> 
> Why does it happen? The obvious solution is not to add LCL dependency to 
> console apps. Is it always the correct way?

Always? Of course not.

 
> Juha
> 
> ----------------------------------------------------
> 
> Linking 
> /Extra/SW/LazConvertTests/LeipzigSourcen-2010.03.31/ExtractBeta/ExtractBeta
> /usr/bin/ld: warning: 
> /Extra/SW/LazConvertTests/LeipzigSourcen-2010.03.31/ExtractBeta/link.res 
> contains output sections; did you forget -T?
> /Extra/SW/lazarus_gitsvn/trunk/lcl/units/i386-linux/wsimglist.o: In function 
> `REGISTERCUSTOMIMAGELIST':

You forgot to add the 'interfaces' unit.

Mattias

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

Reply via email to