![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Professional Programmer
Join Date: Jan 2007
Location: Cape Town
Posts: 291
Rep Power: 2
![]() |
library compatibility?
hi,
i downloaded an example program and and compiled int using make on fedora core 6... i setup the environment and everything like recommended, and all seemed to be going well until i tried to compile: i got an error saying that libstdc++.so.5 was not found, anyway i found that odd because i found libstdc++.so.6 on the machine.... so it should compile!?!?!?!?!? i wrote a simple program and it compiled, so its obviously detecting the libraries.... but why wont the newer library compile the older one??? or must i replace the old library with teh new one int the makefile???? if so, where would i look for that???? thx! |
|
|
|
|
|
#2 |
|
Programming Guru
![]() Join Date: Jun 2005
Location: Adelaide, South Australia
Posts: 1,254
Rep Power: 5
![]() |
libstdc++.so.6 would be a run time library, not a compile time library. You need to include the path (directory) it is included in the LD_LIBRARY_PATH environment variable (IIRC).
|
|
|
|
|
|
#3 |
|
Professional Programmer
Join Date: Jan 2007
Location: Cape Town
Posts: 291
Rep Power: 2
![]() |
hey!
thx 4 the reply! im pretty sure i did add that path in the /etc/ld.so.conf if i did and it still doesnt work, what would the problem be? or is is definately taht i forgot to update the LD_LIBRARY_PATH path? thx! |
|
|
|
|
|
#4 |
|
Programming Guru
![]() ![]() ![]() |
LD_LIBRARY_PATH is the culprit most likely.
__________________
http://jasonpowers.net "There are a thousand hacking at the branches of evil to one who is striking at the root." |
|
|
|
|
|
#5 |
|
Professional Programmer
Join Date: Jan 2007
Location: Cape Town
Posts: 291
Rep Power: 2
![]() |
hey thx! ill try when i get home tonight
im using fedora 4 on this machine, 6 at home -- thats where the problem is... shizweet!!!! |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Using C library in C++ program...? | hydra | C++ | 1 | Dec 14th, 2006 4:13 PM |
| Discussion: How to implement the 'glue' between app and a library? | Eoin | C++ | 10 | Sep 28th, 2006 9:14 AM |
| Any need a game library wrapper of RUDL(rubyese directmedia library) | Master | Ruby | 18 | Apr 1st, 2006 12:24 PM |
| what is the difference between an API and a library? | linuxpimp20 | Other Programming Languages | 6 | Aug 27th, 2005 8:25 AM |
| Code library (in working progress) | Cerulean | Python | 4 | Jul 7th, 2005 9:58 AM |