View previous topic :: View next topic |
Author |
Message |
wolftousen
Joined: 28 Jan 2008 Posts: 10
|
Posted: Mon Jan 28, 2008 6:35 pm Post subject: Eclipse compile issue |
|
|
Hello, I am trying to set up eclipse and am having an issue I can't seem to find an answer to. I have followed all the steps in the tutorials on this site:
http://d.whosme.de/index.php?language=en&site=tutorials
But, when I attempt to compile the Console output window spits:
Could not detect versions.
Using eclipse 3.3.1 and dsss 0.75...
My project fold, eclipse folder, dsss folder and ddgb folder are all in the c:\d folder... Can anyone help me out?
Saw a post that said to do something with user variables in the advance tab of system and add PATH C:\d\dsss-0.75-dmd-win\bin to user variable list but still have same problem...
~Wolftousen - "It is the role of the fate-less to free the fated..." |
|
Back to top |
|
|
asterite
Joined: 01 Jun 2006 Posts: 235 Location: Buenos Aires, Argentina
|
Posted: Tue Jan 29, 2008 7:50 am Post subject: |
|
|
Do you have the bin directory of DMD or GDC in your Windows PATH? The "Could not detect versions" message is produced by dsss if it can't find the DMD compiler. |
|
Back to top |
|
|
wolftousen
Joined: 28 Jan 2008 Posts: 10
|
Posted: Tue Jan 29, 2008 11:38 pm Post subject: |
|
|
Ok, got all that solved and eclipse compiles the exe, but it doesn't print the Hello World statement to the eclipse console output tab. I just get this:
C:\d\dmd\bin\..\..\dm\bin\link.exe .\_main+.\nmd_gcstats,main.exe,,user32+kernel32/noi;
The exe works fine if i run it from the console or double click it in the folder, but if i try to run it from within eclipse it says it isn't a valid win32 exe.
any ideas on this?
~Wolftousen - "It is the role of the fate-less to free the fated..." |
|
Back to top |
|
|
asterite
Joined: 01 Jun 2006 Posts: 235 Location: Buenos Aires, Argentina
|
Posted: Wed Jan 30, 2008 4:33 am Post subject: |
|
|
You need to do "Run -> Run as D application" on the executable, not on the D file. This will improve in future versions. |
|
Back to top |
|
|
|