Browsing this Thread:
1 Anonymous Users
|
Re: Linking a simple libcurl C Program
|
||||
|---|---|---|---|---|
|
Quite a regular
![]() |
@salass00 that is helpful, thank you.
@ncafferkey that's pretty much my day job too... Cheers!
Posted on: 2018/3/17 17:33
|
|||
|
||||
|
Re: Linking a simple libcurl C Program
|
||||
|---|---|---|---|---|
|
Home away from home
![]()
|
Quote:
Google the missing symbols?
Posted on: 2018/3/16 19:07
|
|||
|
||||
|
Re: Linking a simple libcurl C Program
|
||||
|---|---|---|---|---|
|
Quite a regular
![]() |
That helped, thanks!
Through a little trial and error I discovered I needed "gcc foo.c -lcurl -lssl -lcrypto -lz -o foo". Is there a better process than trial and error to find which libs to link?
Posted on: 2018/3/14 15:09
|
|||
|
||||
|
Re: Linking a simple libcurl C Program
|
||||
|---|---|---|---|---|
|
Home away from home
![]()
|
You probably need to link with -lcrypto instead of (or possibly as well as) -lssl.
Posted on: 2018/3/14 9:53
|
|||
|
||||
|
Linking a simple libcurl C Program
|
||||
|---|---|---|---|---|
|
Quite a regular
![]() |
I'm trying to learn libcurl and I'm having trouble getting even simple file to link in AROS.
#include <curl/curl.h> int main() { curl_global_init(CURL_GLOBAL_ALL); } And when I compile with "gcc foo.c -lcurl -o foo" I'm hit with a list of undefined symbols like: RAND_load_file UI_method_method_closer SSL_CTX_use_certificate UI_method_get_reader X509_load_crl_file My first guess was to try also linking with -lssl but that didn't work either. Is anyone able to set me on the right path?
Posted on: 2018/3/14 4:56
|
|||
|
||||
You can view topic.
You cannot start a new topic.
You cannot reply to posts.
You cannot edit your posts.
You cannot delete your posts.
You cannot add new polls.
You cannot vote in polls.
You cannot attach files to posts.
You cannot post without approval.
You cannot use topic type.
You cannot use HTML syntax.
You cannot use signature.
You cannot create PDF files.
You cannot get print page.






