Can't compile DFL Program

Rayburn Davis ray96_28139 at yahoo.com
Fri Jul 22 21:43:02 PDT 2011


Hey Walter thanks for the reply. Hello world works perfectly. I can 
compile it all day without problems.

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.

Same unresolved reference errors, but they're different now:

OPTLINK (R) for Win32  Release 8.00.12
Copyright (C) Digital Mars 1989-2010  All rights reserved.
http://www.digitalmars.com/ctg/optlink.html
Module1.obj(Module1)
  Error 42: Symbol Undefined _D3dfl4form4Form6__ctorMFZC3dfl4form4Form
Module1.obj(Module1)
  Error 42: Symbol Undefined _D3dfl5label5Label6__ctorMFZC3dfl5label5Label
Module1.obj(Module1)
  Error 42: Symbol Undefined 
_D3dfl6button6Button6__ctorMFZC3dfl6button6Button
Module1.obj(Module1)
  Error 42: Symbol Undefined _D3dfl7control7Control4nameMFAyaZv
Module1.obj(Module1)
  Error 42: Symbol Undefined 
_D3dfl10messagebox6msgBoxFAyaAyaE3dfl10messagebox13M
sgBoxButtonsE3dfl10messagebox10MsgBoxIconZE3dfl4base12DialogResult
Module1.obj(Module1)
  Error 42: Symbol Undefined _D3dfl7control7Control4textMFZAya
Module1.obj(Module1)
  Error 42: Symbol Undefined _D3dfl7control7Control8opEqualsMFC6ObjectZb
Module1.obj(Module1)
  Error 42: Symbol Undefined 
_D3dfl7control7Control8opEqualsMFC3dfl7control7Contr
olZb
Module1.obj(Module1)
  Error 42: Symbol Undefined _D3dfl7control7Control8toStringMFZAya
Module1.obj(Module1)
  Error 42: Symbol Undefined _D3dfl7control7Control4textMFAyaZv
C:\D\dmd2\src\dfl\dfl.lib(control)
  Error 42: Symbol Undefined _D3std3utf7toUTF16FAaZAu
C:\D\dmd2\src\dfl\dfl.lib(control)
  Error 42: Symbol Undefined _HIWORD at 4
C:\D\dmd2\src\dfl\dfl.lib(control)
  Error 42: Symbol Undefined _LOWORD at 4
C:\D\dmd2\src\dfl\dfl.lib(control)
  Error 42: Symbol Undefined 
_D3std11outofmemory20OutOfMemoryException7__ClassZ
C:\D\dmd2\src\dfl\dfl.lib(control)
  Error 42: Symbol Undefined 
_D3std11outofmemory20OutOfMemoryException5_ctorMFZC3
std11outofmemory20OutOfMemoryException
C:\D\dmd2\src\dfl\dfl.lib(control)
  Error 42: Symbol Undefined _D6object9Exception8toStringMFZAa
C:\D\dmd2\src\dfl\dfl.lib(control)
  Error 42: Symbol Undefined _D9ClassInfo6__vtblZ
C:\D\dmd2\src\dfl\dfl.lib(control)
  Error 42: Symbol Undefined __d_throw at 4
C:\D\dmd2\src\dfl\dfl.lib(control)
  Error 42: Symbol Undefined _D6object9Exception5printMFZv
C:\D\dmd2\src\dfl\dfl.lib(control)
  Error 42: Symbol Undefined _D6object6Object8opEqualsMFC6ObjectZi
C:\D\dmd2\src\dfl\dfl.lib(control)
  Error 42: Symbol Undefined _D6object6Object8toStringMFZAa
C:\D\dmd2\src\dfl\dfl.lib(control)
  Error 42: Symbol Undefined _D6object6Object5printMFZv
C:\D\dmd2\src\dfl\dfl.lib(control)
  Error 42: Symbol Undefined _D3std3uni10toUniLowerFwZw
C:\D\dmd2\src\dfl\dfl.lib(control)
  Error 42: Symbol Undefined _D3std3utf6decodeFAaKkZw
C:\D\dmd2\src\dfl\dfl.lib(application)
  Error 42: Symbol Undefined _D3std2gc11fullCollectFZv
C:\D\dmd2\src\dfl\dfl.lib(utf)
  Error 42: Symbol Undefined _D3std6string8toStringFiZAa
C:\D\dmd2\src\dfl\dfl.lib(utf)
  Error 42: Symbol Undefined _D6object9Exception5_ctorMFAaZC9Exception
C:\D\dmd2\src\dfl\dfl.lib(utf)
  Error 42: Symbol Undefined _D3std3utf6toUTF8FAuZAa
C:\D\dmd2\src\dfl\dfl.lib(utf)
  Error 42: Symbol Undefined _D3std6string9toStringzFAaZPa
C:\D\dmd2\src\dfl\dfl.lib(utf)
  Error 42: Symbol Undefined _D3std4file9useWfuncsi
C:\D\dmd2\src\dfl\dfl.lib(utf)
  Error 42: Symbol Undefined _D3std3utf8toUTF16zFAaZPu
C:\D\dmd2\src\dfl\dfl.lib(data)
  Error 42: Symbol Undefined _D3std6string4icmpFAaAaZi
C:\D\dmd2\src\dfl\dfl.lib(dlib)
  Error 42: Symbol Undefined _D3std11outofmemory12__ModuleInfoZ
C:\D\dmd2\src\dfl\dfl.lib(com)
  Error 42: Symbol Undefined 
__D3std1c7windows3com9ComObject14QueryInterfaceMWPS3
std1c7windows3com4GUIDPPvZi at 8
C:\D\dmd2\src\dfl\dfl.lib(registry)
  Error 42: Symbol Undefined _D3std6string6formatFYAa
C:\D\dmd2\src\dfl\dfl.lib(socket)
  Error 42: Symbol Undefined 
_D3std6socket6Socket5_ctorMFE3std6socket13AddressFam
ilyE3std6socket10SocketTypeE3std6socket12ProtocolTypeZC3std6socket6Socket
C:\D\dmd2\src\dfl\dfl.lib(socket)
  Error 42: Symbol Undefined 
_D3std6socket12InternetHost13getHostByAddrMFAaZb
C:\D\dmd2\src\dfl\dfl.lib(socket)
  Error 42: Symbol Undefined 
_D3std6socket12InternetHost13getHostByNameMFAaZb
C:\D\dmd2\src\dfl\dfl.lib(socket)
  Error 42: Symbol Undefined 
_D3std6socket6Socket6sendToMFAvE3std6socket11SocketF
lagsC3std6socket7AddressZi
C:\D\dmd2\src\dfl\dfl.lib(socket)
  Error 42: Symbol Undefined _D3std6socket6Socket6sendToMFAvZi
C:\D\dmd2\src\dfl\dfl.lib(socket)
  Error 42: Symbol Undefined 
_D3std6socket6Socket6sendToMFAvE3std6socket11SocketF
lagsZi
C:\D\dmd2\src\dfl\dfl.lib(socket)
  Error 42: Symbol Undefined 
_D3std6socket6Socket6sendToMFAvC3std6socket7AddressZ
i
C:\D\dmd2\src\dfl\dfl.lib(socket)
  Error 42: Symbol Undefined _D3std6socket6Socket4sendMFAvZi
C:\D\dmd2\src\dfl\dfl.lib(socket)
  Error 42: Symbol Undefined 
_D3std6socket6Socket4sendMFAvE3std6socket11SocketFla
gsZi
C:\D\dmd2\src\dfl\dfl.lib(listbox)
  Error 42: Symbol Undefined _D17TypeInfo_C6Object6__initZ
C:\D\dmd2\src\dfl\dfl.lib(filedialog)
  Error 42: Symbol Undefined _D3std4path4joinFAaAaZAa
--- errorlevel 46

Some of the errors reference the dfl lib library I included in the 
command line. Keep in mind that I searched the dfl.lib library with a 
hex editor and found some of the "undefined symbols" there in plain sight.

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.

Thanks for your help.


More information about the Digitalmars-d mailing list