Page 1 of 1

Accessing C libraries with pb under linux

Posted: Thu Mar 10, 2016 3:10 pm
by John Duchek
Can someone put a simple concrete example of using a linux C library (any library) using PB. I have never been able to do this though I have tried. I constantly get errors of various kinds, mostly the libraries are not accessed (read). Something simple where you access the library, pull out and us a routine, and close it.
Thanks for any help,
John

Re: Accessing C libraries with pb under linux

Posted: Mon Mar 14, 2016 1:23 am
by John Duchek
wow, 79 reads and no replies. Does this mean one cannot access C libraries under linux with pb?

Re: Accessing C libraries with pb under linux

Posted: Mon Mar 14, 2016 3:50 am
by Keya
i think using libs is the same under all three OS (in terms of Purebasic source code), just with different .lib files of course for PE, Mach and ELF architecture. If you search the Linux subforum for "ImportC" youll see quite a few examples