Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Library : Other (not classified elsewhere) » curl
curl [message #57603] Tue, 05 October 2021 11:47 Go to next message
GabEll is currently offline  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 Go to previous messageGo to next message
Novo is currently offline  Novo
Messages: 1358
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 Go to previous message
GabEll is currently offline  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 99 times)

[Updated on: Tue, 12 October 2021 16:07]

Report message to a moderator

Previous Topic: PdfDraw isn't linked in when compiling for Win on Linux using Clang-MinGW
Next Topic: [FEATURE + patch]WriteClipboardHTML and HtmlToText functions
Goto Forum:
  


Current Time: Tue Apr 16 22:48:40 CEST 2024

Total time taken to generate the page: 0.01179 seconds