> You find complete details about this approach in
> http://www.haible.de/bruno/woe32dll.html
>
extern __declspec(dllimport) int externvar[5];
extern __declspec(dllimport) int externfunc(int);
int externfunc2 (int x)
{
return externvar[x] + externfunc (0);
}
int externvar[5] = { 11, 22, 3
Hi there!
I implemented wgcc (a compiler wrapper behaving like gcc but calling cl.exe).
Since the target should be to compile sources with minimum changes i have done
lot's of work for this. The only thing one has to do with wgcc is:
Define a macro like MYPROG_EXPORT to __declspec(dllexport) wh
Hi,
There are 4 ways to deal with the problem of exported variables when
building shared libraries on Woe32 platforms. Programmers of shared libraries
have to choose among them. Two of them I'd consider unacceptable for use
in serious projects, and among the remaining two ways one is hard to put
i