set path to a shared object

K

knguyen

Hello,

I am new with C++.

I am struggling with setting path to a shared object. Currently, I
have to use

g++ /usr/local/lib/sharedObject.so file.cpp

in order to compile.

I wonder if there is a way for me to set a path to /usr/local/lib/
sharedObject.so so that I dont have to include the path everytime I
compile. I have played around with .bashrc, yet no luck

I am using Ubuntu 7.10 if it helps.

Thanks

-k
 
V

Victor Bazarov

knguyen said:
I am new with C++.

Your question has nothing to do with C++.
I am struggling with setting path to a shared object. Currently, I
have to use

g++ /usr/local/lib/sharedObject.so file.cpp

in order to compile.

I wonder if there is a way for me to set a path to /usr/local/lib/
sharedObject.so so that I dont have to include the path everytime I
compile. I have played around with .bashrc, yet no luck

I am using Ubuntu 7.10 if it helps.


V
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,767
Messages
2,569,570
Members
45,045
Latest member
DRCM

Latest Threads

Top