Skip to content

Instantly share code, notes, and snippets.

@bookshelfdave
Created July 18, 2012 16:23
Show Gist options
  • Save bookshelfdave/3137278 to your computer and use it in GitHub Desktop.
Save bookshelfdave/3137278 to your computer and use it in GitHub Desktop.
D Curl compile error
OSX 10.7.4
[3]R15B01:prime:~/src/kerl2$ uname -a
Darwin prime.local 11.4.0 Darwin Kernel Version 11.4.0: Mon Apr 9 19:32:15 PDT 2012; root:xnu-1699.26.8~1/RELEASE_X86_64 x86_64
[3]R15B01:prime:~/src/kerl2$ dmd
DMD64 D Compiler v2.059
Copyright (c) 1999-2012 by Digital Mars written by Walter Bright
Documentation: http://www.dlang.org/index.html
...
[3]R15B01:prime:~/src/kerl2$ cat foo.d
import std.net.curl;
void main() {
download("http://www.erlang.org/download/otp_src_R15B01.tar.gz", "./downloaded-ftp-file");
}
[3]R15B01:prime:~/src/kerl2$ dmd foo.d
Undefined symbols for architecture x86_64:
"_curl_global_cleanup", referenced from:
_D3std3net4curl4Curl19_sharedStaticDtor29FZv in libphobos2.a(curl.o)
"_curl_global_init", referenced from:
_D3std3net4curl4Curl19_sharedStaticCtor28FZv in libphobos2.a(curl.o)
"_curl_slist_append", referenced from:
_D3std3net4curl4HTTP3dupMFZS3std3net4curl4HTTP in libphobos2.a(curl_13fe_140.o)
_D3std3net4curl4HTTP16addRequestHeaderMFAxaAxaZv in libphobos2.a(curl_13fe_140.o)
_D3std3net4curl3FTP3dupMFZS3std3net4curl3FTP in libphobos2.a(curl_13ff_ea.o)
_D3std3net4curl3FTP10addCommandMFAxaZv in libphobos2.a(curl_13ff_ea.o)
"_curl_slist_free_all", referenced from:
_D3std3net4curl4HTTP4Impl6__dtorMFZv in libphobos2.a(curl_13fe_140.o)
_D3std3net4curl4HTTP19clearRequestHeadersMFZv in libphobos2.a(curl_13fe_140.o)
_D3std3net4curl3FTP4Impl6__dtorMFZv in libphobos2.a(curl_13ff_ea.o)
_D3std3net4curl3FTP13clearCommandsMFZv in libphobos2.a(curl_13ff_ea.o)
"_curl_easy_init", referenced from:
_D3std3net4curl4Curl10initializeMFZv in libphobos2.a(curl_1404_432.o)
"_curl_easy_duphandle", referenced from:
_D3std3net4curl4Curl3dupMFZS3std3net4curl4Curl in libphobos2.a(curl_1405_149.o)
"_curl_easy_strerror", referenced from:
_D3std3net4curl4Curl11errorStringMFiZAya in libphobos2.a(curl_1407_4a1.o)
"_curl_easy_cleanup", referenced from:
_D3std3net4curl4Curl8shutdownMFZv in libphobos2.a(curl_1409_37c.o)
"_curl_easy_setopt", referenced from:
_D3std3net4curl4Curl3setMFE3etc1c4curl10CurlOptionlZv in libphobos2.a(curl_140c_14c.o)
_D3std3net4curl4Curl3setMFE3etc1c4curl10CurlOptionAxaZv in libphobos2.a(curl_140b_14c.o)
_D3std3net4curl4Curl5clearMFE3etc1c4curl10CurlOptionZv in libphobos2.a(curl_140e_207.o)
_D3std3net4curl4Curl3setMFE3etc1c4curl10CurlOptionPvZv in libphobos2.a(curl_140d_14c.o)
"_curl_easy_perform", referenced from:
_D3std3net4curl4Curl7performMFbZi in libphobos2.a(curl_140f_2fb.o)
ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status
--- errorlevel 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment