On Thu, 05 Mar 2009 18:54:53 +0300, Don <[email protected]> wrote:
Tomas Lindquist Olsen wrote:On Windows, it compiles, but I can't get it to link. The errors are all related to malloc-family functions.2009/3/5 Walter Bright <[email protected]>:http://www.digitalmars.com/d/1.0/changelog.html http://ftp.digitalmars.com/dmd.1.041.zip http://www.digitalmars.com/d/2.0/changelog.html http://ftp.digitalmars.com/dmd.2.026.zipCompiling on linux from source is broken! Looks like you forgot to include the total.h file! -Tomas------------ rmem.obj(rmem) Offset 00111H Record Type 0091Error 1: Previous Definition Different : ?str...@mem@@qaepad...@z (char *syscall Mem::strdup(char const *))--- and so on for the other Mem functions, all from rmem.obj. tk.obj(tk)Error 42: Symbol Undefined ?mem_free@@yax...@z (void cdecl mem_free(void *))-- and so on, all the malloc functions from tk.obj. e2ir.obj(e2ir)Error 42: Symbol Undefined ?mem_fcalloc@@yap...@z (void *cdecl mem_fcalloc(unsigned )) cgobj.obj(cgobj)Error 42: Symbol Undefined ?mem_realloc@@yapaxp...@z (void *cdecl mem_realloc(void *,unsigned )) -----------
I'm on Windows, too, and it compiles fine for me. I'm using Microsoft nmake and compile it as follows:
name win32.mak
Full build log is attached.
build.log
Description: Binary data
