Can't compile DFL Program

Ruben chromium at hybridsource.org
Sat Jul 23 01:11:33 PDT 2011


Rayburn Davis wrote:
> I tried your suggestion on specifying lib files to the compiler on the
> command line. I did this:
>
> dmd -d "C:\Users\Rayburn\Documents\D Projects\Win32App1\Wi
> n32App1\Module1.d" C:\D\dmd2\src\dfl\WS2_32.LIB
> C:\D\dmd2\src\dfl\wsock32.lib C:
> \D\dmd2\src\dfl\advapi32.lib C:\D\dmd2\src\dfl\COMCTL32.LIB
> C:\D\dmd2\src\dfl\co
> mdlg32.lib C:\D\dmd2\src\dfl\CTL3D32.LIB C:\D\dmd2\src\dfl\dfl.lib
> C:\D\dmd2\src
> \dfl\dfl_build.lib C:\D\dmd2\src\dfl\dfl_debug.lib
> C:\D\dmd2\src\dfl\gdi32.lib C
> :\D\dmd2\src\dfl\kernel32.lib C:\D\dmd2\src\dfl\ODBC32.LIB
> C:\D\dmd2\src\dfl\ole
> 32.lib C:\D\dmd2\src\dfl\OLEAUT32.LIB C:\D\dmd2\src\dfl\olepro32_dfl.lib
> C:\D\dm
> d2\src\dfl\phobos.lib C:\D\dmd2\src\dfl\rpcrt4.lib
> C:\D\dmd2\src\dfl\shell32.lib
>   C:\D\dmd2\src\dfl\shell32_dfl.lib C:\D\dmd2\src\dfl\snn.lib
> C:\D\dmd2\src\dfl\u
> ser32.lib C:\D\dmd2\src\dfl\user32_dfl.lib C:\D\dmd2\src\dfl\uuid.lib
> C:\D\dmd2\
> src\dfl\winmm.lib C:\D\dmd2\src\dfl\winspool.lib
>
> Module1.d is the simple D program by the way.
> If I give the compiler the paths of all of the libraries in the folder,
> it should work, right? I don't understand why it's not.
The first page of the DFL tutorial notes that you should use dfl.exe to 
compile DFL apps, which Jesse mentioned using yesterday, not dmd directly:

http://wiki.dprogramming.com/Dfl/Tutorial

You can also use dmd, but that page links to extra flags you need to use 
to compile DFL with dmd, which I don't see you using.  Who knows if the 
dmd option even works anymore, but I was able to use dfl.exe along with 
dmd/phobos 2 when I tried it earlier this year.


More information about the Digitalmars-d mailing list