<p>I think you need the -lib in the linker command (too?).</p>
<div class="gmail_quote">On Feb 29, 2012 12:25 PM, "AndrĂ©" <<a href="mailto:andre@s-e-a-p.de">andre@s-e-a-p.de</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br>
I use Mono-D and have a hello world example which compiles fine.<br>
I set the compiler option "-lib" and receives an error "undefined reference to `_Dmain'".<br>
<br>
Following commands are generated for the build process:<br>
dmd -c "main.d" -of"/home/user/Dokumente/<u></u>MonoDevelop/HelloWorld/<u></u>HelloWorld/obj/Debug/main.o" -I"/usr/include/d/dmd/phobos" -I"/usr/include/d/dmd/<u></u>druntime/import" -gc -debug -lib<br>

<br>
dmd -gc -debug -of"/home/user/Dokumente/<u></u>MonoDevelop/HelloWorld/<u></u>HelloWorld/bin/Debug/<u></u>HelloWorld" "obj/Debug/main.o"<br>
<br>
Do I miss an additional linux option or is the order of the commands wrong?<br>
<br>
Kind regards<br>
André<br>
</blockquote></div>