View previous topic :: View next topic |
Author |
Message |
tulpe
Joined: 19 Jan 2007 Posts: 8
|
Posted: Fri Jan 19, 2007 3:57 am Post subject: compiling without shell window (windows) |
|
|
After i copied phobos.lib into the duit directory and changing the libPath const in several paths.d files to "" instead of "\\Program Files\\Common Files\\GTK\\2.0\\bin\\" (c:\GTK\2.0\bin is in my path) , compile now works.
But how do i compile a program without the cmd window popping up when i start it?
i compiled it this way:
Code: | compd test -o test -I C:\d\duit\src -c -L .+\d\dmd\lib\+phobos+duit |
thanks
obviously i'm a total noob when it comes to D (C,C++) so i really dont know much about compilers/linkers/builders/whatever..
what exactly is compd.exe ? what does it do? is it a wrapper for the compiler? how do i pass the -gui switch to it?
coming from php-gtk2 (don't laugh!) duit was the first thing to try out..
and everything was running real good up to this point
*help*
|
|
Back to top |
|
|
okibi
Joined: 04 Jan 2007 Posts: 170
|
Posted: Sun Jan 21, 2007 7:39 pm Post subject: |
|
|
Don't use compd. I personally use DMD with GCC, and yes GCC can be used on Windows via Cygwin. If you don't want GCC, you can use DM Link or just DMD. Check out the D Code section of http://ddev.ratedo.com for more help. |
|
Back to top |
|
|
Ant
Joined: 06 Mar 2004 Posts: 306 Location: Canada
|
Posted: Sun Jan 21, 2007 11:16 pm Post subject: |
|
|
okibi wrote: | Don't use compd. |
You are right.
compd is mainly the utility leds uses to generate the compile commands.
I created it to be able to generate the compile for dmd linux and window
and gdc (not even started yet) from a common definition.
I had also to create it because bud (former build) didn't work for me and support was inexistent.
once bud and dsss matures we will all use them.
Ant |
|
Back to top |
|
|
tulpe
Joined: 19 Jan 2007 Posts: 8
|
Posted: Mon Jan 22, 2007 7:40 am Post subject: |
|
|
figured it out *joy*
Code: | bud c:\d\duit\test\test.d -gui -O -Ttest.exe -Ic:\D\duit\src -clean |
|
|
Back to top |
|
|
okibi
Joined: 04 Jan 2007 Posts: 170
|
Posted: Mon Jan 22, 2007 8:51 am Post subject: |
|
|
tulpe: just out of curiosity, why did you not compile with dmd directly?
Sorry, I just don't understand why anyone would use a wrapper for a compiler that does pretty much just that. Why not just use the compiler itself?
To each their own I guess, just don't see the point in having another program that does the same thing... |
|
Back to top |
|
|
tulpe
Joined: 19 Jan 2007 Posts: 8
|
Posted: Mon Jan 22, 2007 1:19 pm Post subject: |
|
|
okibi wrote: | tulpe: just out of curiosity, why did you not compile with dmd directly?
Sorry, I just don't understand why anyone would use a wrapper for a compiler that does pretty much just that. Why not just use the compiler itself?
To each their own I guess, just don't see the point in having another program that does the same thing... |
i cannot get dmd to pass the /EXETYPE:NT switch to the linker and my *.def files get ignored |
|
Back to top |
|
|
okibi
Joined: 04 Jan 2007 Posts: 170
|
Posted: Mon Jan 22, 2007 4:06 pm Post subject: |
|
|
Are you trying to use dmd alone, or dmd with dm link, or dmd with gcc? |
|
Back to top |
|
|
JJR
Joined: 22 Feb 2004 Posts: 1104
|
Posted: Mon Jan 22, 2007 8:55 pm Post subject: |
|
|
okibi wrote: | tulpe: just out of curiosity, why did you not compile with dmd directly?
Sorry, I just don't understand why anyone would use a wrapper for a compiler that does pretty much just that. Why not just use the compiler itself?
To each their own I guess, just don't see the point in having another program that does the same thing... |
Because bud automatically finds all required modules/dependencies and selectively compiles them in. So with one line you can achieve what would normally require several dmd lines, or at least you would need to know exactly all the source modules required to compile and link with dmd (it gets complicated fast with bigger projects).
Using bud can cut down hugely on project compiling/testing time.
-JJR |
|
Back to top |
|
|
okibi
Joined: 04 Jan 2007 Posts: 170
|
Posted: Tue Jan 23, 2007 8:43 am Post subject: |
|
|
JJR: And what does that teach anyone? From the looks of it, tulpe isn't use to programming or compiling/linking with the D language, so therefore, in my opinion, should learn more about such things. Bud is a nice tool, but not for beginners who want to learn.
tulpe: Sorry if I got the wrong impression.
I do use bud on large projects, however for small projects, for teaching others, and for general use, I prefer the basic DMD use. |
|
Back to top |
|
|
|