a problem about "g++"

Mo McKinlay mmckinlay@labs.interopen.org
Mon Mar 13 15:57:00 GMT 2000


# So could anybody tell me how I can set my "enviroment"  to run "hello"
# ?  I guess it is a simple question, but because this is the first time I
# use "g++", so I don't know  :-).

[I'm assuming you're running Linux here - if you're not, my advice may be
useless - Sorry :)]

Usually the best way, if it's your own system, is to add /usr/local/lib to
the end of /etc/ld.so.conf, then run 'ldconfig -v' (you'll need to be
'root' to do both of these, normally). 

The other way is to add something like this (if you're using a sh-based
shell) to your profile:

LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
export LD_LIBRARY_PATH

I think all that was correct - I apologize (and hope someone sets me
straight!) if it wasn't. 

Hope this helps.

-- 
Mo McKinlay                                T: +44 (0) 709 22 55 05  x1
Chief Software Architect                   F: +44 (0) 709 22 55 05  x3
inter/open                                 E: mmckinlay@labs.interopen.org
A division of Bekon Marketing Limited      W: http://www.interopen.org



More information about the Gcc mailing list