Re: [fpc-pascal] Error linking with C code

2013-09-18 Thread Xiangrong Fang
> I think you should try to pass the name of the folder where libthost is to > the linker. > -FL/path/to/libthost > > Michael. > > This does not work, same error message. I also tried to copy libthost.so to current dir, but leave thostmduserapi.so in ../libthost, same result. Regards, Xiangrong

Re: [fpc-pascal] Error linking with C code

2013-09-18 Thread Michael Van Canneyt
On Wed, 18 Sep 2013, Xiangrong Fang wrote: where is thostmduserapi.so ? Michael. This file is under libthost folder, I copied it to pasintf folder then use fpc to compile demo.pas. I think you should try to pass the name of the folder where libthost is to the linker. -FL/path/to/libtho

Re: [fpc-pascal] Error linking with C code

2013-09-18 Thread Xiangrong Fang
> > > where is thostmduserapi.so ? > > Michael. This file is under libthost folder, I copied it to pasintf folder then use fpc to compile demo.pas. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/

Re: [fpc-pascal] Error linking with C code

2013-09-18 Thread Michael Van Canneyt
On Wed, 18 Sep 2013, Xiangrong Fang wrote: Hi All, I am writing pascal wrapper for a C library called "CTP", which is used in future trading.  My project is here: https://github.com/xrfang/CTPas Compiling the interface file along is successful. While linking, fpc complains: ./thostmdusera