Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - General
User Name
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.


  Search this Thread
Old 08-05-2003, 03:49 AM   #1
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 :

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

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.


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 7 12-19-2015 02:03 AM
XF86Config : Option "Resolution" "800" carboncopy Slackware 2 12-16-2003 11:13 PM
Option "ZAxisMapping" "4 5" won't work apax Linux - Hardware 7 11-06-2003 10:41 AM
anging "Protocol" option to "IMPS/2" in XF86Config-4 causes problems zstingx Linux - General 2 10-27-2003 10:47 AM
GCC option "-fshared-data" doesn't work jph Programming 0 08-05-2003 06:39 AM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 10:50 AM.

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