Author Topic: sharing a section in a DLL  (Read 2803 times)

e19293001

  • Guest
sharing a section in a DLL
« on: August 18, 2010, 05:59:15 am »
Hello,

I wanted to share a section of a DLL, this can be done using Visual C++ by adding
Code
#pragma comment(linker, "/section:.SHARE, rws")
My question is, how can this be done using codeblocks.

Regards

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: sharing a section in a DLL
« Reply #1 on: August 18, 2010, 12:01:37 pm »
Please read this: http://wiki.codeblocks.org/index.php?title=FAQ#Q:_What_Code::Blocks_is_not.3F
Then read the docs of the compiler/linker you're using.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline thomas

  • Administrator
  • Lives here!
  • *****
  • Posts: 3979
Re: sharing a section in a DLL
« Reply #2 on: August 18, 2010, 12:12:23 pm »
You'll find the answer to your specific problem by searching the internet for "gcc shared section".
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."