D.gnu - Equivalent to some DMD arguments.
- =?ISO-8859-1?Q?Julio_C=E9sar_Carrascal_Urquijo?= (14/14) May 30 2007 Hi.
- =?ISO-8859-1?Q?Anders_F_Bj=F6rklund?= (3/6) May 31 2007 Use the "gdmd" wrapper, and the -vdmd flag (that shows the gdc commands)
- Frits van Bommel (6/13) May 31 2007 I don't think that'll work for the -'L' options though, as those should
- Downs (4/8) May 31 2007 -pg (maybe also -lgcov, depends on your system)
- Gregor Richards (10/22) May 31 2007 This isn't how .dll's are done with GDC. No static import library is
- =?ISO-8859-1?Q?Julio_C=E9sar_Carrascal_Urquijo?= (3/16) May 31 2007 Thank you and all of the responders. That's all that needed.
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 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.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)
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!.Thank you and all of the responders. That's all that needed.-H, -Hf and -Hd Generate interface files.I'd recommend you just use gdmd, but otherwise: -fintfc -fintfc-dir= -fintfc-file=
May 31 2007