how to use a lib in d

Andrej Mitrovic andrej.mitrovich at gmail.com
Sun Mar 27 13:23:28 PDT 2011


win32.lib doesn't have any modules, it only has binary code.

You need to add an import switch and the location of the win32 project
folder. E.g. if you have:

C:\win32\win32\winbase.d

Then you would add "-IC:\win32\", and the compiler will look for
winbase inside the win32 subfolder. So your compile command would look
like:
"dmd.exe common.d main.d win32.lib -IC:\win32\ -ofediting.exe -inline
-O -release -w -version=Unicode -version=WindowsVista"

There should be a list of imports you can set in Eclipse, I believe.
It is an IDE after all.


More information about the Digitalmars-d mailing list