T
T
Tesla4o2018-12-27 10:37:47
linux
Tesla4o, 2018-12-27 10:37:47

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?
5c2481463716f730802317.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
J
jcmvbkbc, 2018-12-28
@Tesla4o

I write the key -static

from info gcc:
'-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 question

Ask a Question

731 491 924 answers to any question