Frage

I'm using the DMD compiler on Windows 7. I just tried to create a brand new D file and compile it, and would get a gigantic error dump from DMD. Eventually, I pared the file back to literally just the module declaration (module tournament;), and then I get the following errors from DMD:

OPTLINK : Warning 23: No Stack
OPTLINK : Warning 134: No Start Address   

Now, I have absolutely no idea what could be causing this. Could someone help me? The command I used was dmd tournament.d in the same directory as the file being compiled.

War es hilfreich?

Lösung

The error message is coming from the linker - by default, after compiling the modules you specified, the compiler will invoke the linker to link the object files into an executable. If the modules you specified do not contain an entry point (main function), the linker will complain. You can suppress invoking the linker by supplying the -c switch to the compiler.

See this answer for more information.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top