[Issue 20690] Static LibCurl

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Mar 21 14:49:25 UTC 2020


https://issues.dlang.org/show_bug.cgi?id=20690

--- Comment #4 from svnpenn at gmail.com ---
> My guess is that the symbol its looking for has an underscore prepended to its
> name which is not uncommon. This would cause the issues that you are seeing.
>
> The simplest way to confirm, is to compile curl without the leading underscore
> or to i.e. objdump its symbol table.

That sounds promising, but I dont think thats the problem:

~~~
$ objdump -x libcurl.lib | ag curl_global_init
[17](sec  1)(fl 0x00)(ty  20)(scl   2) (nx 0) 0x00000000 curl_global_init
[32](sec  1)(fl 0x00)(ty  20)(scl   2) (nx 0) 0x000000a0 curl_global_init_mem
0000000000000000 IMAGE_REL_AMD64_ADDR32NB curl_global_init
0000000000000004 IMAGE_REL_AMD64_ADDR32NB curl_global_init
000000000000000c IMAGE_REL_AMD64_ADDR32NB curl_global_init_mem
0000000000000010 IMAGE_REL_AMD64_ADDR32NB curl_global_init_mem
~~~

> As Richard mentioned, the first lookup is on the binary itself. Do you have
> `libcurl.dll` in the folder your binary is in ?

Have you ever built a D program that uses static LibCurl? Because I find it
hard
to believe what you are saying. I have built hundreds of static Windows
programs
over the years, and the shared libary was never required at runtime or build
time.

--


More information about the Digitalmars-d-bugs mailing list