command_line needs -ldl flag to build on Linux
Opened this issue · 2 comments
Deleted user commented
This is on up-to-date Ubuntu 12.04 LTS. I can get it to link by adding -ldl
to the end of this line but since that's an autogenerated file that's obviously not a real solution. Unfortunately I'm not at all familiar with premake, and not sure how you'd tell it you need it to generate this.
$ make command_line
==== Building static_lib (debug) ====
... etc etc all good ...
Linking command_line
../build/libcirca_d.a(native_patch.o): In function `circa::native_patch_close(circa::NativePatch*)':
/home/unico/toolshelf/github.com/paulhodge/circa/src/native_patch.cpp:258: undefined reference to `dlclose'
../build/libcirca_d.a(native_patch.o): In function `circa::native_patch_load_from_file(circa::NativePatch*, char const*)':
/home/unico/toolshelf/github.com/paulhodge/circa/src/native_patch.cpp:271: undefined reference to `dlopen'
/home/unico/toolshelf/github.com/paulhodge/circa/src/native_patch.cpp:274: undefined reference to `dlerror'
/home/unico/toolshelf/github.com/paulhodge/circa/src/native_patch.cpp:280: undefined reference to `dlsym'
collect2: ld returned 1 exit status
make[1]: *** [../build/circa_d] Error 1
make: *** [command_line] Error 2
Deleted user commented
Yes, builds fine now. Thanks!