![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Using funcion in a shared library | yhacks | High Level Programming | 1 | 05-23-2008 08:03 AM |
| Shared memory in shared library | DreamWarrior | High Level Programming | 12 | 05-30-2007 05:33 PM |
| shared library | areef4u | UNIX for Advanced & Expert Users | 1 | 08-01-2006 03:14 AM |
| Creation of Shared library | sarangb | SCO | 0 | 06-17-2005 08:51 AM |
| Shared Library | rajashekaran | High Level Programming | 2 | 08-03-2002 02:59 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
shared library not found
Hello,
On a Centos 5.0 box, I have two versions of a library (sqlite): (1) in /usr/lib that was installed using yum (maybe from php but I am not really sure) (2) in /usr/local/lib that I installed myself by compiling from the source code. My C++ program contains the following lines: main.cpp #include "/usr/local/include/sqlite3.h" Makefile SQLITE_LIB = "/usr/local/lib/libsqlite3.so" SQLITE = -I "/usr/local/include/" $(TARGET_APP) : main.o $(CPP) -LLIBDIR $(FASTCGI_LIB) $(SQLITE_LIB) -o $(TARGET_APP) main.o main.o : main.cpp $(CPP) $(BOOST) $(SQLITE) -c -o main.o main.cpp This compiles fine but when I run it, I am getting the error message: symbol lookup error: app: undefined symbol: sqlite3_open_v2 I guess the shared library is not found at run time. What should I do to make it work? Thanks |
| Bookmarks |
| Tags |
| linux, linux commands |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|