C:\sperl\perl\bin\perl.exe -IC:\sperl\perl\lib -IC:\sperl\perl\lib C:\ +sperl\perl \lib\ExtUtils\xsubpp -typemap C:\sperl\perl\lib\ExtUtils\typemap ODBC. +xs >xstmp .c && C:\sperl\perl\bin\perl.exe -MExtUtils::Command -e mv -- xstmp.c +ODBC.cpp Didn't find a 'MODULE ... PACKAGE ... PREFIX' line gcc -c -ggdb -O2 -DWIN32 -DWIN64 -DCONSERVATIVE -DPERL_TEXTMODE_SCRIPT +S -DUSE_SITECUSTOMIZE -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -fno- +strict-ali asing -mms-bitfields -O2 -DVERSION=\"0.034\" -DXS_VERSION=\"0.034\" "-IC:\sperl\perl\lib\CORE" ODBC.cpp ODBC.xs: In function 'RETCODE ResetStmt(ODBC_TYPE*)': ODBC.xs:347: warning: deprecated conversion from string constant to 'c +har*' ............................... ODBC.xs: In function 'void XS_WIN32__ODBC_Connect(PerlInterpreter*, CV +*)': ODBC.xs:645: warning: deprecated conversion from string constant to 'c +har*' ...................................... ODBC.xs:661: warning: deprecated conversion from string constant to 'c +har*' ODBC.xs:678: error: cast from 'char*' to 'UDWORD' loses precision ODBC.xs:683: warning: deprecated conversion from string constant to 'c +har*' ...................................... ODBC.xs:2489: warning: deprecated conversion from string constant to ' +char*' ODBC.xs: In function 'void boot_Win32__ODBC(PerlInterpreter*, CV*)': ODBC.xs:2596: warning: deprecated conversion from string constant to ' +char*' dmake: Error code 129, while making 'ODBC.o' C:\Documents and Settings\Administrator\.cpan\build\Win32-ODBC-0.034-u +1YhI1>perl -V Summary of my perl5 (revision 5 version 14 subversion 2) configuration +: Platform: osname=MSWin32, osvers=4.0, archname=MSWin32-x64-multi-thread uname='Win32 strawberryperl 5.14.2.1 #1 Tue Nov 22 22:40:59 2011 x +64' config_args='undef' hint=recommended, useposix=true, d_sigaction=undef useithreads=define, usemultiplicity=define useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=und +ef use64bitint=define, use64bitall=undef, uselongdouble=undef usemymalloc=n, bincompat5005=undef Compiler: cc='gcc', ccflags =' -ggdb -O2 -DWIN32 -DWIN64 -DCONSERVATIVE -DP +ERL_TEXTMO DE_SCRIPTS -DUSE_SITECUSTOMIZE -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT +_SYS -fno- strict-aliasing -mms-bitfields', optimize=' -O2 ', cppflags='-DWIN32' ccversion='', gccversion='4.4.7', gccosandvers='' intsize=4, longsize=4, ptrsize=8, doublesize=8, byteorder=12345678 d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=1 +2 ivtype='long long', ivsize=8, nvtype='double', nvsize=8, Off_t='lo +ng long', lseeksize=8 .............................
Same here.
UDWORD udValue; /////////////////////////////////////////////////// if (SvIOKp(ST(iTemp)) || SvNOKp(ST(iTemp))){ udValue = SvIV(ST(iTemp)); }else{ udValue = (UDWORD) SvPV(ST(iTemp), n_a); } retcode = SQLSetConnectOption(h->hdbc->hdbc, uType +, udValue);
This module hasn't been updated in years, and its not 64 bit compliant. http://msdn.microsoft.com/en-us/library/ms716287%28v=vs.85%29.aspx, That "UDWORD" should now be "ULONG_PTR" or "DWORD_PTR" toi be 32 and 64 bit compliant. Even MS updated the OBDC API with "SQLULEN" instead of whatever was there before. Also read http://msdn.microsoft.com/en-us/library/windows/desktop/aa384242%28v=vs.85%29.aspx.

In reply to Re: Can't install Win32::ODBC by bulk88
in thread Can't install Win32::ODBC by Thai Heng

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.