LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 08-05-2003, 05:39 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



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
bash script: using "select" to show multi-word options? (like "option 1"/"o zidane_tribal Programming 7 12-19-2015 01:03 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 Linux - General 0 08-05-2003 02:49 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 05:33 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