Hello everyone.
I would like to use LCL into a C++ application. I am writing my own procedural wrapper, to export LCL classes as a set of functions usable within C, and I am trying to link it into my executable. Everything works if I build a dll within Lazarus and use that, but I would like to link the library statically.
Using the ar tool I have built a static library from the .o files generated by Lazarus. When I link the library in my C++ application, I get many unresolved external symbols, like: FPC_LIBINITIALIZEUNITS, FPC_LIB_EXIT, FPC_RESSYMBOL, _CLASSES_TCOMPONENT_$__EXECUTEACTION$TBASICACTION$$BOOLEAN, etc.
I guess that I need to link to RTL, LCL and LCLBase, but I don't know where these libraries are in the Lazarus installation. Are they static .a libraries, or are they a set of .o files? If you could point me to where these compiled libraries are, it would be of much help.
Thanks in advance.