"[...] Eeeddd: (11:15 PM) all your global variables are in dgroup
the C compiler assumes the ds register has the segment of dgroup
so, for the pointer assignment, it's assuming ds has dgroup, and putting the
contents of ds into your pointer but in a library, ds has whatever was in it
before the library got called
i'm trying to remember how to get the compiler to load dgroup in ds when
it enters the function [...]"
What he was trying to remember was using the mentioned -WDE option...
Bye,
MeyerK