www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Linking woes mysqlclient.lib

reply Steve Teale <steve.teale britseyeview.com> writes:
I'm trying to link against MySQL5.0 mysqlclient.lib. I have done the COFF -->
OMF conversion like a good boy

LINK /LIB /CONVERT mysqlclient.lib
coff2omf mysqlclient.lib

Same for yassl.lib which I had to build using VC6 since it is left out of the
MySQL5.0 distribution.

The resulting OMF libraries look ok, and libunres can understand them.

In yassl.lib I see (for example) _SSL_new in both the COFF and OMF libraries.
Correspondingly, in mysqlclient.lib I see _yaSSL_new.

But if I build a minimal mysqlclient program in D, the linker complains that
all the _yaSSL... references are missing.  The same program in VC6 with the
COFF libraries links ok.

Is this some namespace thing, and if so how do I get around it?
Jul 01 2007
parent BCS <ao pathlink.com> writes:
Reply to Steve,

 I'm trying to link against MySQL5.0 mysqlclient.lib. I have done the
 COFF --> OMF conversion like a good boy
 
 LINK /LIB /CONVERT mysqlclient.lib
 coff2omf mysqlclient.lib
 Same for yassl.lib which I had to build using VC6 since it is left out

can that be built with dmc?
Jul 02 2007