Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Jan 18th, 2007, 8:16 AM   #1
rwm
Professional Programmer
 
Join Date: Jan 2007
Location: Cape Town
Posts: 291
Rep Power: 2 rwm is on a distinguished road
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!
rwm is offline   Reply With Quote
Old Jan 18th, 2007, 9:31 AM   #2
grumpy
Programming Guru
 
grumpy's Avatar
 
Join Date: Jun 2005
Location: Adelaide, South Australia
Posts: 1,254
Rep Power: 5 grumpy will become famous soon enough
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).
grumpy is offline   Reply With Quote
Old Jan 18th, 2007, 9:40 AM   #3
rwm
Professional Programmer
 
Join Date: Jan 2007
Location: Cape Town
Posts: 291
Rep Power: 2 rwm is on a distinguished road
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!
rwm is offline   Reply With Quote
Old Jan 18th, 2007, 10:03 AM   #4
Infinite Recursion
Programming Guru
 
Infinite Recursion's Avatar
 
Join Date: Jul 2004
Location: United States
Posts: 3,467
Rep Power: 8 Infinite Recursion is on a distinguished road
Send a message via MSN to Infinite Recursion Send a message via Yahoo to Infinite Recursion
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."
Infinite Recursion is offline   Reply With Quote
Old Jan 18th, 2007, 10:27 AM   #5
rwm
Professional Programmer
 
Join Date: Jan 2007
Location: Cape Town
Posts: 291
Rep Power: 2 rwm is on a distinguished road
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!!!!
rwm is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

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




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 10:14 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC