27.02.2013 23:12, monarch_dodra пишет:
I can't seem to get the executable to link correctly.
I'm using gcc and dmd on windows.
I'm building foo.c with:
gcc -c foo.c -o foo.obj
Then I build my exe with:
dmd foo.obj main.d
But I get:
OPTLINK (R) for Win32 Release 8.00.12
Copyright (C) Digital Mars 1989-2010 All rights reserved.
http://www.digitalmars.com/ctg/optlink.html
test.obj Offset 00000H Record Type 004C
Error 138: Module or Dictionary corrupt
--- errorlevel 1
...Help ?
Under Windows I use dmc + dmd and gdc + gcc - all these combinations
work fine. But I only tested it on simple and small files.
There is also unilink (ftp://ftp.styx.cabel.net/pub/UniLink/) - they say
it can link together omf and coff, but I don't try it