You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In some scenarios,we need to share variables in a DLL on windows platform. with msvc compiler,we usually use the '#pragma data_seg("Shared")' option to create a share section in a dll. how could fbc achieve the same effect or is there a option or funciton in fbc ?
The text was updated successfully, but these errors were encountered:
As I know some linker keys need to be used.
In the MSVC compiler, it looks like this (if memory serves):
link /section:.mydata,erw
I had a FreeBASIC project that was translated into an assembler listing and assembled by a linker from MSVC. True for a long time. But the experience is interesting.
In some scenarios,we need to share variables in a DLL on windows platform. with msvc compiler,we usually use the '#pragma data_seg("Shared")' option to create a share section in a dll. how could fbc achieve the same effect or is there a option or funciton in fbc ?
The text was updated successfully, but these errors were encountered: