Closed jegesm closed 10 years ago
Hi David,
that looks like it has problems linking against both libstdc++
and libusb
. What's your version of them as well as of clang?
Update: also you could try the fork at chrstn-hntschl/k290-fnkeyctl@a40bf6b63 which has been modified to work in Ubuntu.
Thanks for the quick reply!
libstdc++.so.6.0.16 libusb-0.1.so.4.4.4 and clang: Ubuntu clang version 3.0-6ubuntu3 (tags/RELEASE_30/final) (based on LLVM 3.0) Target: x86_64-pc-linux-gnu Thread model: posix
Hello again, the problem for me was the -std=c++11 flag. When I used -std=c++0x instead it compiled. Thanks a lot! it is working properly. David
Great to know, thanks for the feedback! Maybe I should write a proper Makefile after all... :smirk:
Hi Marcus,
I tried it on ubuntu 12.04 with clang and libusb installed, but received lots of undefined references. First I thought something is wrong with linking the libusb but it looks allright. What else am I missing? Thanks in advance! David
sh build.sh /tmp/k290_fnkeyctl-H1ayn6.o: In function&)':
k290_fnkeyctl.cpp:(.text+0x7c): undefined reference to
__cxx_global_var_init': k290_fnkeyctl.cpp:(.text+0x11): undefined reference to
std::ios_base::Init::Init()' k290_fnkeyctl.cpp:(.text+0x19): undefined reference tostd::ios_base::Init::~Init()' /tmp/k290_fnkeyctl-H1ayn6.o: In function
getK290Device(std::shared_ptrlibusb_get_device_list' k290_fnkeyctl.cpp:(.text+0xbb): undefined reference to
libusb_free_device_list' k290_fnkeyctl.cpp:(.text+0xc3): undefined reference tostd::placeholders::_1' k290_fnkeyctl.cpp:(.text+0x149): undefined reference to
libusb_get_device_descriptor' ..........