Bug in OPTLINK?

David L. Davis SpottedTiger at yahoo.com
Thu Jun 14 07:53:29 PDT 2007


Sascha,

    Your link that you gave, gives me an error...but either way...I'd still like to suggest that you look into a couple of D building tools that are on the D Source web-site.

    Tool for building D executables and libraries
    -------------------------------------------------------------
    Bud: http://www.dsource.org/projects/build
    DSSS: http://www.dsource.org/projects/dsss

   Sorry, I wasn't helpfully enough to solve your issue, but hopefully one or both of the above tools will fix it.

David L. Davis

WeirdCat Wrote:

> David L. Davis Wrote:
> >     I commented in the "pragma(lib, "Ws2_32.lib");" line in testme.d, but left it in C:\dmd\test\win32\winsock2.d...and then just added the win32\winsock2.d parameter to the commandline (dmd testme.d win32\winsock2.d). It still compiles in my tests...maybe the linker's path is missing in your environment "Path" variable.
> 
> I know that it works if you use that command line. The Problem only manifests if you link with the library (.lib), which you don't do (try: "dmd test.d lib\win32.lib". The original win32 project has _much_ more files (http://www.dsource.org/projects/bindings/browser/trunk/win32), why it is impractical to list every source file on the command line or compile it every time I rebuild the project. That's why I have to precompile the win32 directory into a library, so I can easily link it.
> 
> LLAP,
> Sascha



More information about the Digitalmars-d-learn mailing list