D.gnu - Equivalent to some DMD arguments.
- =?ISO-8859-1?Q?Julio_C=E9sar_Carrascal_Urquijo?= May 30 2007
- =?ISO-8859-1?Q?Anders_F_Bj=F6rklund?= <afb algonet.se> May 31 2007
- Frits van Bommel <fvbommel REMwOVExCAPSs.nl> May 31 2007
- Downs <default_357-line yahoo.de> May 31 2007
- Gregor Richards <Richards codu.org> May 31 2007
- =?ISO-8859-1?Q?Julio_C=E9sar_Carrascal_Urquijo?= May 31 2007
Hi. I'm working on compiling some projects using GDC as well as DMD. Right now I'm having trouble finding some equivalent command line arguments for GDC: -L/IMPLIB:mydll.lib This generates an import library for a DLL. -L/SU:WINDOWS This one removes the console window on Windows. -H, -Hf and -Hd Generate interface files. -cov Adds code to generate coverage information. Can anybody help me? Thanks.
May 30 2007
Julio César Carrascal Urquijo wrote:I'm working on compiling some projects using GDC as well as DMD. Right now I'm having trouble finding some equivalent command line arguments for GDC:
Use the "gdmd" wrapper, and the -vdmd flag (that shows the gdc commands) --anders
May 31 2007
Anders F Björklund wrote:Julio César Carrascal Urquijo wrote:I'm working on compiling some projects using GDC as well as DMD. Right now I'm having trouble finding some equivalent command line arguments for GDC:
Use the "gdmd" wrapper, and the -vdmd flag (that shows the gdc commands)
I don't think that'll work for the -'L' options though, as those should be passed to the linker and GDC uses a different one; I'm pretty sure gdmd doesn't translate them. But ld (the linker GDC uses) is quite popular, so in those cases you should be able to find the correct options on the 'net.
May 31 2007
Julio César Carrascal Urquijo wrote:-L/SU:WINDOWS This one removes the console window on Windows.
-mwindows-cov Adds code to generate coverage information.
-pg (maybe also -lgcov, depends on your system) I don't know about the rest though.
May 31 2007
Julio César Carrascal Urquijo wrote:Hi. I'm working on compiling some projects using GDC as well as DMD. Right now I'm having trouble finding some equivalent command line arguments for GDC: -L/IMPLIB:mydll.lib This generates an import library for a DLL.
This isn't how .dll's are done with GDC. No static import library is necessary, you can link a binary directly against the .dll, and the imports are generated on-the-fly. Wouldn't it be great if all Windows compilers were this smart?-H, -Hf and -Hd Generate interface files.
I'd recommend you just use gdmd, but otherwise: -fintfc -fintfc-dir= -fintfc-file= - Gregor Richards
May 31 2007
Gregor Richards wrote:This isn't how .dll's are done with GDC. No static import library is necessary, you can link a binary directly against the .dll, and the imports are generated on-the-fly. Wouldn't it be great if all Windows compilers were this smart?
Wow. I didn't knew that. Great!.-H, -Hf and -Hd Generate interface files.
I'd recommend you just use gdmd, but otherwise: -fintfc -fintfc-dir= -fintfc-file=
Thank you and all of the responders. That's all that needed.
May 31 2007









Frits van Bommel <fvbommel REMwOVExCAPSs.nl> 