× General discussions, feature requests for CodeTyphon Project and discussions that don't fit in any of the other specific CodeTyphon forum categories.

Question frReports only for GUI app?

  • Michael
  • Topic Author
  • Offline
  • New Member
  • New Member
More
8 months 2 days ago #16391 by Michael
frReports only for GUI app? was created by Michael
Hello,

I was trying to make a console app, to print reports to a printer. This work fine as GUI app, but when I try to build a console app, I got a lot of linking errors.

Are the frReports only for GUI applications? Or did I forgot a switch in the project/compiler/linker options?

Here is a simple example (to make it compile, I added the package "lz_Report" to the project dependencies):
I use Ubuntu 20.04, CT 7.7
program Project1;

uses LR_Class, LR_DBSet, LR_View;

var
  frReport: TfrReport;



begin
end. 

Then Linking Errors like this
Warning: linker: /usr/bin/ld: /usr/local/codetyphon/typhon/lcl/units/x86_64-linux/wsimglist.o: in function `REGISTERCUSTOMIMAGELISTRESOLUTION':
Error: /usr/local/codetyphon/typhon/lcl//widgetset/wsimglist.pp:265: undefined reference to `WSRegisterCustomImageListResolution'
Warning: linker: /usr/bin/ld: /usr/local/codetyphon/typhon/lcl/units/x86_64-linux/wsmenus.o: in function `REGISTERMENUITEM':
Error: /usr/local/codetyphon/typhon/lcl//widgetset/wsmenus.pp:222: undefined reference to `WSRegisterMenuItem'
Warning: linker: /usr/bin/ld: /usr/local/codetyphon/typhon/lcl/units/x86_64-linux/wsmenus.o: in function `REGISTERMENU':
.....

Please Log in or Create an account to join the conversation.

  • Matis A.
  • Matis A.'s Avatar
  • Away
  • Moderator
  • Moderator
More
8 months 2 days ago - 8 months 2 days ago #16392 by Matis A.
Replied by Matis A. on topic frReports only for GUI app?
Try this
uses  
  Interfaces,   
  Forms,

PilotLogic Core Programmer
Last edit: 8 months 2 days ago by Matis A..

Please Log in or Create an account to join the conversation.