octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #55363] Global variable in a MEX file


From: Mike Miller
Subject: [Octave-bug-tracker] [bug #55363] Global variable in a MEX file
Date: Fri, 4 Jan 2019 14:59:41 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36

Follow-up Comment #8, bug #55363 (project octave):

Yeah I fully agree with comment #7.

I can confirm that building the mex files with '-Wl,-Bsymbolic-functions'
results in the variable 'myglobalvar' referring to the same single location in
Octave's process space when both functions are loaded.

Can you build the same mex files with Matlab using the
'-Wl,-Bsymbolic-functions' link option and see whether the behavior follows
there as well?

    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?55363>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]