This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: 'char **environ' woes with cygwin


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).

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]