'char **environ' woes with cygwin

DJ Delorie dj@delorie.com
Fri Aug 25 09:45:00 GMT 2000


Eli Zaretskii wrote:
> Could you please explain more why is this a problem.  I'm afraid I
> don't know enough about the Cygwin DLL to get the idea.

Cygwin has something like one of these:

#define environ (*(__get_environ()))
-or-
extern __declspec(dllimport) char **environ;

DLLs are better at exporting functions than variables (think DXE).


More information about the Gdb mailing list