www.digitalmars.com         C & C++   DMDScript  

D.gnu - Equivalent to some DMD arguments.

reply =?ISO-8859-1?Q?Julio_C=E9sar_Carrascal_Urquijo?= writes:
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
next sibling parent reply =?ISO-8859-1?Q?Anders_F_Bj=F6rklund?= <afb algonet.se> writes:
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
parent Frits van Bommel <fvbommel REMwOVExCAPSs.nl> writes:
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
prev sibling next sibling parent Downs <default_357-line yahoo.de> writes:
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
prev sibling parent reply Gregor Richards <Richards codu.org> writes:
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
parent =?ISO-8859-1?Q?Julio_C=E9sar_Carrascal_Urquijo?= writes:
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