LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 09-02-2005, 03:53 AM   #1
srivembu
LQ Newbie
 
Registered: Sep 2005
Posts: 2

Rep: Reputation: 0
Will C++ Application run in computer without gcc c-compiler


Hi ,

I'm developing a multithreaded C++ application by linking static libraries
It run fine in system with C compiler . But it fail if gcc version what I have compiled is not present saying could not load libstdc++.so.5 or ibstdc++.so.6 .

Is C application needs gcc installed in the target end system.

Should use any other compiler option to run my application in computer without gcc installed in it .


thanks in advance

Regards.
Sri
 
Old 09-02-2005, 04:01 AM   #2
SlackerLX
Senior Member
 
Registered: Dec 2004
Location: Herzliyya, Israel
Distribution: SuSE 10.1; Testing Distros
Posts: 1,832

Rep: Reputation: 47
When gcc project is compiled into a program, the user won't need compiler to run this, already compiled program. User's function usually stays with ./program (after chmod +x if needed)
 
Old 09-02-2005, 04:25 AM   #3
srivembu
LQ Newbie
 
Registered: Sep 2005
Posts: 2

Original Poster
Rep: Reputation: 0
hi SlackerLX,

Thanks for ur reply.

If c++ application doesn't needs gcc then why it exits quoting application could not load libstdc++.so.X (X is 5 or 6) .

Will all program require libstdc++ since firefox installation also exits for same reason .

I have encountered another problem running my application exiting it could load libstdc++.so.5 in a system with gcc version 3.4 and higher version libstdc++.so.6

thanks in advance

regards,

Sri
 
Old 09-03-2005, 06:02 AM   #4
SlackerLX
Senior Member
 
Registered: Dec 2004
Location: Herzliyya, Israel
Distribution: SuSE 10.1; Testing Distros
Posts: 1,832

Rep: Reputation: 47
It requires libraries not compilers
 
Old 09-03-2005, 10:20 AM   #5
UltimaGuy
Member
 
Registered: Aug 2003
Location: Chennai, India
Distribution: PCLinuxOS .92, FC4
Posts: 840

Rep: Reputation: 32
If you are a little more clear about what distro you're using .. then we can suggest what you can do to install that library ...

Your problem is one of the more common problems .. so you can also search in google for the solution for your distro ...

This solution can also help .. so check this out :


Solution: Create symbolic links to make the libraries appear in the old folder:

ln -s /usr/local/lib/libstdc++.so.5 /usr/lib/libstdc++.so.5
ln -s /usr/local/lib/libgcc_s.so.1 /usr/lib/libgcc_s.so.1
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
GCC Compiler rr_rr_29 Linux - Software 2 10-17-2005 04:14 AM
GCC Compiler..... mani_iips Linux - Newbie 4 08-08-2005 08:55 PM
gcc compiler canyon289 Linux - Software 3 10-23-2004 10:22 PM
GCC compiler .. pashupathinath Programming 1 10-21-2004 12:20 PM
GCC Compiler HELP Otaking Linux - Newbie 5 04-08-2004 06:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 06:17 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration