Vladimir Panteleev wrote:
On Mon, 31 Jan 2011 06:13:54 +0200, Walter Bright
<[email protected]> wrote:
Vladimir Panteleev wrote:
Compiling the source from the .zip still yields a broken dmd.exe. My
version and the one from the .zip seem to differ in many small ways.
The first difference is that in main(), the .zip version calls a
function to get the address of errno, while my .exe accesses a
variable directly.
Check your dmc's errno.h. It should call a function.
It's declared as follows:
#if defined(_MT) || defined(_DLL) || __cplusplus
extern int * __CLIB _errno(void);
#define errno (*_errno())
#else
extern int __cdecl errno;
#endif
So, which of _MT or _DLL or __cplusplus should be defined on my machine
but aren't?
_MT and __cplusplus