LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 05-16-2004, 11:53 PM   #1
shanenin
Member
 
Registered: Aug 2003
Location: Rochester, MN, U.S.A
Distribution: Gentoo
Posts: 987

Rep: Reputation: 30
gcc glibc compatibility


Could someone help me understand the relationship between gcc and glibc. Do you need compatible versions(gcc and glibc) on your system so you are able to compile programs? Any insight would be appreciated. Thank you.

Last edited by shanenin; 05-17-2004 at 12:01 AM.
 
Old 05-17-2004, 06:36 PM   #2
jailbait
Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Wheezy, Debian Jessie
Posts: 7,509

Rep: Reputation: 176Reputation: 176
"Could someone help me understand the relationship between gcc and glibc. Do you need compatible versions(gcc and glibc) on your system so you are able to compile programs? "

Yes. When gcc compiles source code it sets up links to standard subroutines in glibc. The subroutines in glibc change from time to time. When the parameter list for a called glibc subroutine changes then gcc has to be changed to set the parameter list up the same way. So glibc and gcc tend to be released in matching releases.

The relationship to libraries other than glibc is different. For other functions the programmer has to tell gcc to include the function in the compile. Also the programmer has to specify the parameter list for each function call. gcc does not need built in knowledge about the functions explicitly defined by the programmer so these functions are gcc version independent.

___________________________________
Be prepared. Create a LifeBoat CD.
http://users.rcn.com/srstites/LifeBo...home.page.html

Steve Stites
 
Old 05-17-2004, 09:56 PM   #3
shanenin
Member
 
Registered: Aug 2003
Location: Rochester, MN, U.S.A
Distribution: Gentoo
Posts: 987

Original Poster
Rep: Reputation: 30
thanks. That helps
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems with gcc 3.2.1 and glibc 2.3.1 m0llbuz_ Linux - General 3 12-31-2010 02:43 AM
Compatibility between gcc and gcc-lib rajesht Red Hat 1 06-01-2005 12:28 PM
GCC Compatibility JanusPaul Programming 11 03-11-2005 06:32 PM
gcc wont install, 'failed dependencies: glibc-devel is needed by gcc-3.3.3-41' TdlSnare Suse/Novell 3 11-29-2004 02:13 PM
gcc 3.4.0 and glibc ralam Linux From Scratch 8 05-06-2004 12:19 PM


All times are GMT -5. The time now is 08:37 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration