Re: Possible OS incompatibility with __attribute__ 'shared'
Basile Starynkevitch <[email protected]> Sun, 21 Dec 2025 22:46:48 +0100
| Newsgroups | gmane.comp.gcc.help |
|---|---|
| Message-ID | <[email protected]> |
On Sun, 2025-12-21 at 21:32 +0000, [email protected] wrote: > Hello. On the web page at https://gcc.gnu.org/onlinedocs/gcc-3.3.3/gcc/Variable-Attributes.html > > I found this: > int foo __attribute__((section ("shared"), shared)) = 0; > > I got it to work (using MinGW GCC) in W98, but the same method did not work in Windows 7, even when restricted to 32-bit process interactions. Current GCC is 15 (the 3.3 one was from 2005) Regards -- Basile STARYNKEVITCH basile AT starynkevitch DOT net 8 rue de la Faïencerie http://starynkevitch.net/Basile/ 92340 Bourg-la-Reine https://github.com/bstarynk France https://github.com/RefPerSys/RefPerSys https://orcid.org/0000-0003-0908-5250