Link Shared library to cpp

Hi,
I need to use 3rd party header file in my cpp program, they provide header files and shared libraries , how to link those libraries to my cpp

Update:
I had successfully linked those shared libraries to cpp program but still not able to include the header files getting error


1
2
3
4
5
6
7
8
9
10
11
12
[hanuman@localhost MyCpp]$ g++ -O3 -I /usr/local/include/nuance-omnipage-csdk-20.1 

MyCpp.cpp -o MyCpp -L/usr/local/lib/nuance-omnipage-csdk-lib64-20.1 -lrecapiplus -

lkernelapi -lrecpdf  -Wl,-rpath-link,/usr/local/lib/nuance-omnipage-csdk-lib64-20.1,-

rpath,/usr/local/lib/nuance-omnipage-csdk-lib64-20.1

[hanuman@localhost MyCpp]$ g++ -o MyCpp MyCpp.cpp
MyCpp.cpp:1:23:
 fatal error: KernelApi.h: No such file or directory
 #include "KernelApi.h" 

Last edited on
What is kernelapi?
What is kernelapi?


KernelApi is a header file from the sdk
Which SDK?
nuance-omnipage-csdk
You don't seem to be using Windows, which means your file names are case sensitive.

That aside, where is your KernelApi.h file? You can run this to find it:
 
find /usr/local -iname KernelApi.h 2>/dev/null
Topic archived. No new replies allowed.