Oe Aug 17 07:31, Agner Fog wrote: > > So errno was a bad example but you can try accessing e.g. __ctype_ptr__, > > __progname, optarg, h_errno, or use FE_DFL_ENV from another DLL, just > > for kicks. > __ctype_ptr__ is a function > > h_errno works like errno with an imported function > > FE_DFL_ENV is a macro > > __progname and optarg are local variables to each exe or dll That would contradict what, e.g., __progname is for. Here's a test: $ cat > dll.c < extern char *__progname; void printprog () { printf ("progname: %s\n", __progname); } EOF $ cat > main.c < gcc is using the small memory model by default in Cygwin64, and it works. No, it's not, see above. > clang is using the small memory by default when cross-compiling for a Cygwin64 target from Linux, and it works. ...in *your* example code. Corinna -- Corinna Vinschen Cygwin Maintainer