libcurl, always segmentation violation

Linux specific forum
User avatar
Shardik
Addict
Addict
Posts: 2058
Joined: Thu Apr 21, 2005 2:38 pm
Location: Germany

Re: libcurl, always segmentation violation

Post by Shardik »

idle wrote:The import should be fine as

ImportC "-lcurl"
...
EndImport

the -l tells gcc to search for libcurl under /usr/lib
ImportC "-lcurl" only finds libcurl if the library libcurl.so can be found in /usr/lib. A libcurl.so.3 or libcurl.so.4 isn't sufficient. In order to obtain libcurl.so, the developer version has to be installed with:
sudo apt-get install libcurl4-openssl-dev
or
sudo apt-get install libcurl4-gnutls-dev
Fred
Administrator
Administrator
Posts: 18162
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: libcurl, always segmentation violation

Post by Fred »

Commenting the 'Procedure ErrorHandler()' make it work, so it's probably related to our OnError handling on Linux
Post Reply