problem creating a 32-bit dll

nezih via Digitalmars-d digitalmars-d at puremagic.com
Tue Aug 26 07:48:03 PDT 2014


Hi everyone,
I am trying to create a 32-bit dll (on windows server 2012 
64-bit) for an odbc driver, but no luck so far. 64-bit version 
works just fine. I can also see that the functions I implemented 
(the setup/install api of odbc) are properly exported in the dll, 
but when I try to create a data source name (DSN) using the 
driver windows complains that the "setup routines for the driver 
are not accessible". When I build an 64-bit dll I don't get any 
errors. I use a makefile to build the dll using cygwin, and here 
is its output:

Administrator at WIN-GGN7BN6N6R5 /cygdrive/c/workspace/presto-odbc
$ make clean installer ARCH=32
$ARCH is 32
$LIBCURL is /cygdrive/c/D/dmd2/windows/bin/libcurl.dll
rm -f *.obj *.exp *.lib *.ilk *.pdb presto.dll unittests
rm -f installer/win/32/*.exe
dmd -g -w -version=UNICODE -m32 -Luser32.lib client/*.d odbc/*.d 
driver/*.d -shared -ofpresto.dll
client\statementclient.d(102): Deprecation: function 
core.time.Duration.hours is deprecated - Please use split 
instead. hours was too frequently confused for total!"hours".
OPTLINK (R) for Win32  Release 8.00.15
Copyright (C) Digital Mars 1989-2013  All rights reserved.
http://www.digitalmars.com/ctg/optlink.html
OPTLINK : Warning 9: Unknown Option : NOIUSER32.LIB
dmd -unittest -g -w -version=UNICODE -m32 -Luser32.lib client/*.d 
odbc/*.d driver/*.d test/*.d -ofunittests
client\statementclient.d(102): Deprecation: function 
core.time.Duration.hours is deprecated - Please use split 
instead. hours was too frequently confused for total!"hours".
OPTLINK (R) for Win32  Release 8.00.15
Copyright (C) Digital Mars 1989-2013  All rights reserved.
http://www.digitalmars.com/ctg/optlink.html
OPTLINK : Warning 9: Unknown Option : NOIUSER32.LIB
cp /cygdrive/c/D/dmd2/windows/bin/libcurl.dll .
chmod 555 libcurl.dll
./unittests
Tests completed.


Thanks,
Nezih


More information about the Digitalmars-d mailing list