Home » U++ Library support » U++ Library : Other (not classified elsewhere) » curl
curl [message #57603] |
Tue, 05 October 2021 11:47  |
GabEll
Messages: 2 Registered: October 2021 Location: Italy
|
Junior Member |
|
|
hi,
i am trying to compile this simple code
#include "helloCurl.h"
#include <curl_x86-windows/include/curl/curl.h>
helloCurl::helloCurl()
{
CtrlLayout(*this, "Window title");
CURL *curl;
CURLcode res;
curl = curl_easy_init();
}
GUI_APP_MAIN
{
helloCurl().Run();
}
but always get this error :
(): lld-link: error: undefined symbol: __declspec(dllimport) curl_easy_init
what im doing wrong ?
and what i have to do it right ?
thx
gabriele
|
|
|
Re: curl [message #57614 is a reply to message #57603] |
Sat, 09 October 2021 01:24   |
Novo
Messages: 1430 Registered: December 2006
|
Ultimate Contributor |
|
|
I guess you are not linking your app against a library containing code of a function curl_easy_init.
Regards,
Novo
|
|
|
Re: curl [message #57615 is a reply to message #57603] |
Sat, 09 October 2021 08:46  |
GabEll
Messages: 2 Registered: October 2021 Location: Italy
|
Junior Member |
|
|
i am trying as you can see in the png attached
but didnt work and the error is the same
what i am doing wrong ?
thx
EDIT 1
correct link to .a library and now build process go on
but now im stuck with ldap dependancy
thx btw
-
Attachment: curl.PNG
(Size: 51.99KB, Downloaded 148 times)
[Updated on: Tue, 12 October 2021 16:07] Report message to a moderator
|
|
|
Goto Forum:
Current Time: Fri Apr 25 12:21:13 CEST 2025
Total time taken to generate the page: 0.00968 seconds
|