Closed ammarhameed closed 9 years ago
Please note that this is a quesion, not a bug.
I've installed the lib and I'm trying to use but I'm not ableb to, the installation is shown below,
Install the project... /usr/bin/cmake -P cmake_install.cmake -- Install configuration: "" -- Installing: /usr/local/share/pkgconfig/libcapn.pc -- Installing: /etc/ld.so.conf.d/libcapn-1.0.0-x86_64.conf -- Installing: /usr/local/lib/capn/libcapn.so.1.0.0 -- Installing: /usr/local/lib/capn/libcapn.so.1 -- Installing: /usr/local/lib/capn/libcapn.so -- Installing: /usr/local/include/capn/apn.h -- Installing: /usr/local/include/capn/platform.h -- Installing: /usr/local/include/capn/version.h
And then I'm trying to use it like the following with no success,
gcc -L/usr/local/lib/capn send_push.c -llibcapn /usr/bin/ld: cannot find -llibcapn collect2: error: ld returned 1 exit status
Can you please advise?
never mind, I should have used this "-lcapn" instead of "-llibcapn" as shown below.
gcc -L/usr/local/lib/capn send_push.c -lcapn
Please note that this is a quesion, not a bug.
I've installed the lib and I'm trying to use but I'm not ableb to, the installation is shown below,
Install the project... /usr/bin/cmake -P cmake_install.cmake -- Install configuration: "" -- Installing: /usr/local/share/pkgconfig/libcapn.pc -- Installing: /etc/ld.so.conf.d/libcapn-1.0.0-x86_64.conf -- Installing: /usr/local/lib/capn/libcapn.so.1.0.0 -- Installing: /usr/local/lib/capn/libcapn.so.1 -- Installing: /usr/local/lib/capn/libcapn.so -- Installing: /usr/local/include/capn/apn.h -- Installing: /usr/local/include/capn/platform.h -- Installing: /usr/local/include/capn/version.h
And then I'm trying to use it like the following with no success,
gcc -L/usr/local/lib/capn send_push.c -llibcapn /usr/bin/ld: cannot find -llibcapn collect2: error: ld returned 1 exit status
Can you please advise?