View previous topic :: View next topic |
Author |
Message |
Carlos
Joined: 19 Mar 2004 Posts: 396 Location: Canyon, TX
|
Posted: Sun May 29, 2005 7:13 pm Post subject: gdmd |
|
|
I haven't downloaded the latest gdc yet, but David said he had renamed his dmd script to gdmd. Build will need to provide another makefile just for gdc. I just thought I should post this here. |
|
Back to top |
|
|
Derek Parnell
Joined: 22 Apr 2004 Posts: 408 Location: Melbourne, Australia
|
Posted: Sun May 29, 2005 7:29 pm Post subject: Re: gdmd |
|
|
Carlos wrote: | I haven't downloaded the latest gdc yet, but David said he had renamed his dmd script to gdmd. Build will need to provide another makefile just for gdc. I just thought I should post this here. |
Yes, I suppose so. Until then (its only a one line change)
Code: |
# "Makefile.gdc"
DMD=gdmd
DFLAGS=-op -release -inline
SOURCES=build.d util/pathex_bn.d util/pathex.d source_bn.d util/str.d build_bn.d util/fdt_bn.d util/str_bn.d source.d util/fdt.d util/fileex.d util/fileex_bn.d util/linetoken.d util/linetoken_bn.d util/bmscanner.d util/bmscanner_bn.d util/macro.d
all: build
build: $(SOURCES)
$(DMD) $(DFLAGS) -of$@ $(SOURCES)
clean:
rm -f *.o build
|
_________________ --
Derek
skype name: derek.j.parnell |
|
Back to top |
|
|
skotku
Joined: 23 Aug 2007 Posts: 2 Location: Sweden
|
Posted: Tue Jan 08, 2008 1:06 pm Post subject: dsss gdmd |
|
|
Hi everyone !
After writing alot of command programs in D I want to run some gtk with D ... so I tried to with gdc and gtkd but .. i failed miserably.. after a bit of searching around I found dsss and thought ok I'll let dsss fix the building and linking and such.
So I got the latest (0.74) version of dsss and typed away .. just like in the tutorial videos (great videos by the way) and i found that .. oh I'm missing gdmd.. oh what is it? .. searching seaching .. aha its the obsolete prequal to gdc.. and I made a softlink to gdc-4.1 and .. typed away again
dsss net install gtkd
...
Creating imports for DG-gtk
Creating imports for DG-gtkc
Creating imports for DG-pango
atk => DG-atk
+ /home/sepek/dsss/bin/rebuild -Idsss_imports/ -I. -S./ -I/home/sepek/dsss/include/d -S/home/sepek/dsss/lib/ -I/home/sepek/dsss/include/d -S/home/sepek/dsss/lib -I/home/sepek/d/include/d -S/home/sepek/d/lib -oqdsss_objs/G -explicit -lib atk/Text.d atk/Image.d atk/Relation.d atk/StreamableContent.d atk/Registry.d atk/GObjectAccessible.d atk/ObjectFactory.d atk/Hyperlink.d atk/RelationSet.d atk/Util.d atk/EditableText.d atk/Hypertext.d atk/Action.d atk/Selection.d atk/StateSet.d atk/Component.d atk/ObjectAtk.d atk/NoOpObjectFactory.d atk/ValueAtk.d atk/Table.d atk/State.d atk/NoOpObject.d atk/Document.d -oflibDG-atk.a
gdmd: unrecognized option '-version=Posix'
gdmd: cannot specify -o with -c or -S with multiple files
Command /home/sepek/dsss/bin/rebuild returned with code 256, aborting.
Error: Command failed, aborting.
now what? .. I know its vague but I'll just wait until the next version of dsss comes along right! |
|
Back to top |
|
|
Player
Joined: 17 Jan 2008 Posts: 2
|
Posted: Thu Jan 17, 2008 6:49 am Post subject: |
|
|
gdc doesn't support the -version and -op commandline switches. You have to use the gdmd wrapper script instead of calling gdc directly.
I've modified build to use gdmd for the GNU section including -op detection to fix the linker object file paths. |
|
Back to top |
|
|
|