Answer the question
In order to leave comments, you need to log in
How to include dynamic library in netbeans along with static ubuntu?
I need to compile the project statically with all the libraries so that it would work on other PCs without them. In Linker I write like this:
/usr/lib/libboost_system.a ... etc.
and I write the -static key
But there is one library that is used in the project, it is only dynamically linked. I didn't find a static one. libv8. you have to put it next to the binary and link it with the -dynamic key. But when building, netbins swears that I'm trying to attach a statically dynamic library?
Answer the question
In order to leave comments, you need to log in
I write the key -static
'-static'
On systems that support dynamic linking, this prevents linking with
the shared libraries. On other systems, this option has no effect.
there is no such key when you collect under linux
What to do? Remove the -static key -- anyway, a statically linked executable file will not work, since a dynamic library is needed.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question