What am I doing wrong here?

Is that stuff (ie freetds-0.82) getting a bit old ? The webpage apparently hasn't been updated since August 2006.
And it says on that webpage that this is a library for Unix and Linux. Maybe there's something better for Windows machines. (I know absolutely nothing about Sybase.)

When I build that freetds-0.82 library on my Windows Vista box using the MinGW compiler (in the msys shell), the following files are built:
bin/ bin/bsqldb.exe bin/bsqlodbc.exe bin/datacopy.exe bin/defncopy.exe bin/freebcp.exe bin/osql bin/tdspool.exe bin/tsql.exe etc/ etc/freetds.conf etc/locales.conf etc/pool.conf include/ include/bkpublic.h include/cspublic.h include/cstypes.h include/ctpublic.h include/sqldb.h include/sqlfront.h include/sybdb.h include/syberror.h include/sybfront.h include/tds_sysdep_public lib/ lib/libct.a lib/libct.la lib/libsybdb.a lib/libsybdb.la lib/libtdsodbc.a lib/libtdsodbc.la man/ man/man1/ man/man1/bsqldb.1 man/man1/bsqlodbc.1 man/man1/datacopy.1 man/man1/defncopy.1 man/man1/fisql.1 man/man1/freebcp.1 man/man1/osql.1 man/man1/tsql.1 man/man5/ man/man5/freetds.conf.5 share/ [snip - a lot of doc files]
If I was stuck with that Visual Studio build of freetds then, assuming that the .lib files you've specified are the only ones that exist, I would firstly create a D:\freetds-0.82\lib directory and move all of the .lib files to it. Then try renaming them to libct.lib and libsybct.lib - it would be a trial and error approach (unless you want to take a look inside those libraries and see what symbols they define).

Presumably, at some stage, the dll will need to be in a location that's in your path.

Cheers,
Rob

In reply to Re: DBD::Sybase on windows server 2003 by syphilis
in thread DBD::Sybase on windows server 2003 by jlpears

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.