[SOLVED!] LIBCURL POLINK errors only when debug is disabled

Just starting out? Need help? Post your questions and find answers here.
zikitrake
Addict
Addict
Posts: 834
Joined: Thu Mar 25, 2004 2:15 pm
Location: Spain

[SOLVED!] LIBCURL POLINK errors only when debug is disabled

Post by zikitrake »

Edited (resolved by myself): I only needed to add ImportC "wsock32.lib" to libcurl.pbi
=================


[PB 5.61 64 - Windows 10]

This code works fine if debugger is enabled

Code: Select all

IncludeFile "libcurl.pbi"; https://github.com/deseven/pbsamples/blob/master/crossplatform/libcurl/libcurl.pbi

curl  = curl_easy_init()
If curl
  curl_easy_cleanup(curl)  
EndIf  
But, when I try to create an .exe or run it with debugger off, it raise this error:

Image

Any idea to solve it?
Thank you in advace :!: