LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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 08-05-2003, 02:49 AM   #1
jph
LQ Newbie
 
Registered: Jul 2003
Location: Switzerland
Posts: 6

Rep: Reputation: 0
Unhappy GCC option "-fshared-data" doesn't work


I need to use shared data in a dynamic library via the "-fshared-data" gcc option.
When two process use the library, they always work with two private data, in place of one shared.
Here is an extraction of the make command lines :

(Compilation)
g++ -O0 -g3 -Wall -c -fPIC -fshared-data $(SRC)

(Link)
g++ -Wl,-soname,$(LINKERNAME) -shared -o $(REALNAME) $(OBJS) -lc

Is it a problem with other options ?

I use GNU C++ version 2.96 20000731. Or is it a problem with the compiler ?

Thank's for your help.
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
bash script: using "select" to show multi-word options? (like "option 1"/"o zidane_tribal Programming 6 03-21-2013 10:35 AM
XF86Config : Option "Resolution" "800" carboncopy Slackware 2 12-16-2003 10:13 PM
Option "ZAxisMapping" "4 5" won't work apax Linux - Hardware 7 11-06-2003 09:41 AM
anging "Protocol" option to "IMPS/2" in XF86Config-4 causes problems zstingx Linux - General 2 10-27-2003 09:47 AM
GCC option "-fshared-data" doesn't work jph Programming 0 08-05-2003 05:39 AM


All times are GMT -5. The time now is 03:12 AM.

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