Does anyone know how to get shared data segments to work
with Dev-C++?
This code compiles fine, but the resulting DLL contains no shared
data segment:
#pragma data_seg(".SHARED")
int sharedvar =3D 0;
#pragma data_seg()
#pragma comment(linker, "/section:.SHARED,RWS")
I don't think the linker gets the comment from the last #pragma here,
so is there any other way of telling this to the linker?
I tried adding the "/section:SHARED,RWS" (without quotes) to the
"additional linker options" field in Project options for Dev-C++, but
it doesn't have any effect. No errors either, it probably does not
make it to the linker.
The linker also outputs a warning about a missing .def file, and that
"dllwrap will create one, but it may not be what you want", how do I
get rid of this?
Surely someone know the answers to these questions, or maybe have a
link that explains how to do it?
-=D8yvind
---------------------------------
mr...@c2... @ work
|