LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-03-2018, 04:22 AM   #1
venkee
LQ Newbie
 
Registered: Oct 2018
Posts: 1

Rep: Reputation: Disabled
Question shared symbols while linking in GCC


is there a way to specify the shared symbols across libraries through a text file to GCC linker?? instead of specifying their address manually in the linker script??
 
Old 10-07-2018, 07:29 AM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 10,880

Rep: Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241
Welcome to LQ

Re your question: Are you a new, or experienced coder? I presume it's Library symbols you mean

Normally, gcc compiles the code, and ld (part of glibc) is employed as necessary to link in the libraries. Libraries generally hold much used modules or subroutines which save a coder from reinventing the wheel.

'info ld' will give you a truly sickening amount of information on how it's done. Most of us are satisfied not to look under the hood as long as it keeps happening correctly.
 
Old 10-09-2018, 07:30 PM   #3
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,511

Rep: Reputation: 1006Reputation: 1006Reputation: 1006Reputation: 1006Reputation: 1006Reputation: 1006Reputation: 1006Reputation: 1006
I've never heard of using a text file for that. The symbols really have to come from the libs.
 
Old 10-11-2018, 07:11 PM   #4
Fat_Elvis
Member
 
Registered: Oct 2016
Distribution: FreeDOS 1.2
Posts: 252

Rep: Reputation: 73
Symbols should be resolved automatically by GCC without resorting to linker scripts unless you're mixing and matching object files between compilers or assemblers.


If this is a C++ problem, I'd have no idea, however.

Last edited by Fat_Elvis; 10-11-2018 at 07:16 PM.
 
Old 10-12-2018, 05:20 AM   #5
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 10,880

Rep: Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241
I'd like to hear from the OP. Pinging the OP...
 
  


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
[SOLVED] C : Linking problem : can't find symbols in a library Shadew Programming 2 09-17-2015 04:35 AM
[SOLVED] Symbols stripped from shared object ivspman Red Hat 3 12-19-2012 03:22 AM
Undefined symbols when linking with .a but not with .o ziglar Programming 2 02-17-2010 11:37 AM
any links on linking, loading shared libraries, shared objects. etc? ananthbv Programming 0 02-03-2005 08:47 AM
Linking old symbols to new ones in C turls Programming 1 06-14-2004 09:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:35 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration