V
V
Vladimir Grabko2016-07-19 14:06:57
C++ / C#
Vladimir Grabko, 2016-07-19 14:06:57

How to use din. libraries not from global space?

Let's say I have library sources. I compiled it and got a set of .S0 files. Next, you need to use dlopen and header files. But out of the box, header files are treated "like global" ala <patch>. Usually you need to drop the header files and libraries in usr/ and everything is ok. But what if I want to make a local lib folder in my project in which I will store all this stuff. Then I need to correct all the include header files so that they use "local" files ala "patch"? Or how?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
F
Fat Lorrie, 2016-07-19
@VGrabko

The only difference is where the compiler will look for headers in the first place. To use <Х>- tell the compiler where you have the includes.
In Makefile
In QMake - variable INCLUDEPATH
For MSBuld - environment variable INCLUDE.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question