It looks like the .net libraries and compiler are first in the list.  I
haven't tested with that.  I still use VC98 from the command line.  Are you
building perl with the .net compiler or are you using ActiveState?

Jeff

> 
> Hi,
> 
> I downloaded 1.05 of DBD::ODBC and manually attempted to 
> install from dos prompt.  The failure occurs on step 2 of the 
> install procedure.  Unresolved external __ftol2.  I have .Net 
> installed.  Not sure if that is a problem.
> 
> OS= win2k
> Perl=5.8.0
> DBI=1.37
> 
> step1:  perl Makefile.PL --> successfully creates make file
> 
> step2:  nmake  -->  fails to link with the following message
> 
> D:\Perl\DBD-ODBC-1.05>nmake
> 
> Microsoft (R) Program Maintenance Utility Version 7.00.9466 
> Copyright (C) Microsoft Corporation.  All rights reserved.
> 
>          D:\Perl\bin\perl.exe -MExtUtils::Command -e mkpath 
> blib\lib\DBD\ODBC
>          D:\Perl\bin\perl.exe -MExtUtils::Command -e rm_f 
> blib\lib\DBD\ODBC\Chan ges.pm
>         D:\Perl\bin\perl.exe -MExtUtils::Command -e cp 
> Changes blib\lib\DBD\ODBC \Changes.pm cp ODBC.pm blib\lib\DBD\ODBC.pm
>          rem
>          rem
>         D:\Perl\bin\perl.exe -p -e "s/~DRIVER~/ODBC/g" < 
> D:/Perl/site/lib/auto/D BI/Driver.xst > ODBC.xsi
>         D:\Perl\bin\perl.exe D:\Perl\lib\ExtUtils/xsubpp  
> -typemap D:\Perl\lib\E xtUtils\typemap  ODBC.xs > ODBC.xsc && 
> D:\Perl\bin\perl.exe -MExtUtils::Command -e mv ODBC.xsc ODBC.c
> Warning: duplicate function definition 'data_sources' 
> detected in ODBC.xs, line 202
>         cl -c  -ID:/Perl/site/lib/auto/DBI  -nologo -Gf -W3 
> -MD -Zi -DNDEBUG -O1  -DWIN32 -D_CONSOLE -DNO_STRICT 
> -DHAVE_DES_FCRYPT -DPERL_IMPLICIT_CONTEXT -DPERL
> _IMPLICIT_SYS -DUSE_PERLIO -DPERL_MSVCRT_READFIX -MD -Zi 
> -DNDEBUG -O1    -DVERSI
> ON=\"1.05\"  -DXS_VERSION=\"1.05\"  "-ID:\Perl\lib\CORE"   ODBC.c
> ODBC.c
> ODBC.xs(36) : warning C4013: 'dbd_st_tables' undefined; 
> assuming extern returnin g int
> ODBC.xs(46) : warning C4013: 'dbd_st_primary_keys' undefined; 
> assuming extern re turning int
> ODBC.xs(87) : warning C4013: 'dbd_db_execdirect' undefined; 
> assuming extern retu rning int
> ODBC.xs(126) : warning C4013: 'odbc_get_statistics' 
> undefined; assuming extern r eturning int
> ODBC.xs(136) : warning C4013: 'odbc_get_primary_keys' 
> undefined; assuming extern  returning int
> ODBC.xs(149) : warning C4013: 'odbc_get_special_columns' 
> undefined; assuming ext ern returning int
> ODBC.xs(162) : warning C4013: 'odbc_get_foreign_keys' 
> undefined; assuming extern  returning int
> ODBC.xs(228) : warning C4013: 'odbc_error' undefined; 
> assuming extern returning int
> ODBC.xs(222) : warning C4101: 'henv' : unreferenced local variable
>         cl -c  -ID:/Perl/site/lib/auto/DBI  -nologo -Gf -W3 
> -MD -Zi -DNDEBUG -O1  -DWIN32 -D_CONSOLE -DNO_STRICT 
> -DHAVE_DES_FCRYPT -DPERL_IMPLICIT_CONTEXT -DPERL
> _IMPLICIT_SYS -DUSE_PERLIO -DPERL_MSVCRT_READFIX -MD -Zi 
> -DNDEBUG -O1    -DVERSI
> ON=\"1.05\"  -DXS_VERSION=\"1.05\"  "-ID:\Perl\lib\CORE"   dbdimp.c
> dbdimp.c
> dbdimp.c(2434) : warning C4018: '<' : signed/unsigned mismatch
> dbdimp.c(2570) : warning C4018: '>' : signed/unsigned mismatch
> dbdimp.c(2616) : warning C4146: unary minus operator applied 
> to unsigned type, r esult still unsigned
> dbdimp.c(2720) : warning C4244: '=' : conversion from 'IV' to 
> 'SWORD', possible loss of data
> dbdimp.c(2796) : warning C4018: '<' : signed/unsigned 
> mismatch "Running Mkbootstrap for DBD::ODBC ()"
>         D:\Perl\bin\perl.exe -MExtUtils::Command -e chmod 644 ODBC.bs
>         D:\Perl\bin\perl.exe -MExtUtils::Mksymlists  -e 
> "Mksymlists('NAME'=>\"DB D::ODBC\", 'DLBASE' => 'ODBC', 
> 'DL_FUNCS' => {  }, 'FUNCLIST' => [], 'IMPORTS' =
> > {  }, 'DL_VARS' => []);"
>         link -out:blib\arch\auto\DBD\ODBC\ODBC.dll -dll 
> -nologo -nodefaultlib -r
> elease  -libpath:"D:\Perl\lib\CORE"  -machine:x86 ODBC.obj  
> dbdimp.obj   D:\Perl
> \lib\CORE\perl58.lib "C:\Program Files\Microsoft Visual 
> Studio\VC98\lib\ODBC32.L IB" "C:\Program Files\Microsoft 
> Visual Studio\VC98\lib\oldnames.lib" "C:\Program  
> Files\Microsoft Visual Studio\VC98\lib\kernel32.lib" 
> "C:\Program Files\Microsof t Visual 
> Studio\VC98\lib\user32.lib" "C:\Program Files\Microsoft 
> Visual Studio\V C98\lib\gdi32.lib" "C:\Program 
> Files\Microsoft Visual Studio\VC98\lib\winspool.l ib" 
> "C:\Program Files\Microsoft Visual 
> Studio\VC98\lib\comdlg32.lib" "C:\Program  Files\Microsoft 
> Visual Studio\VC98\lib\advapi32.lib" "C:\Program 
> Files\Microsof t Visual Studio\VC98\lib\shell32.lib" 
> "C:\Program Files\Microsoft Visual Studio\ 
> VC98\lib\ole32.lib" "C:\Program Files\Microsoft Visual 
> Studio\VC98\lib\oleaut32. lib" "C:\Program Files\Microsoft 
> Visual Studio\VC98\lib\netapi32.lib" "C:\Progra m 
> Files\Microsoft Visual Studio\VC98\lib\uuid.lib" "C:\Program 
> Files\Microsoft V isual Studio\VC98\lib\wsock32.lib" 
> "C:\Program Files\Microsoft Visual Studio\VC9 8\lib\mpr.lib" 
> "C:\Program Files\Microsoft Visual Studio\VC98\lib\winmm.lib" 
> "C: \Program Files\Microsoft Visual 
> Studio\VC98\lib\version.lib" "C:\Program Files\M icrosoft 
> Visual Studio\VC98\lib\odbc32.lib" "C:\Program 
> Files\Microsoft Visual S tudio\VC98\lib\odbccp32.lib" 
> "C:\Program Files\Microsoft Visual Studio\VC98\lib\ 
> msvcrt.lib" -def:ODBC.def
>    Creating library blib\arch\auto\DBD\ODBC\ODBC.lib and 
> object blib\arch\auto\D BD\ODBC\ODBC.exp dbdimp.obj : error 
> LNK2019: unresolved external symbol __ftol2 referenced in fun 
> ction _dbd_preparse blib\arch\auto\DBD\ODBC\ODBC.dll : fatal 
> error LNK1120: 1 unresolved externals NMAKE : fatal error 
> U1077: 'link' : return code '0x460' Stop.
> 
> 
> Thanks,
> Abe
> 


Reply via email to