Skip to Content.
Sympa Menu

freetds - Re: Another newbie question. Where I can find a simple/complete example?

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: Mark Schaal <mark AT champ.tstonramp.com>
  • To: freetds AT franklin.oit.unc.edu
  • Subject: Re: Another newbie question. Where I can find a simple/complete example?
  • Date: Mon, 4 Dec 2000 13:27:49 -0800 (PST)



Because you didn't include the library where these functions are
defined. You should use 'make check' or 'gmake check' instead
which will set up the definitions correctly. You should also be
able to use 'make test0001' if you only want to compile a single
test.

Mark

>
> When I tried to compile it, I got "undefined references" errors.
> Would you tell me why I am getting these errors?
>
> /tmp/cc41QNAd.o: In function `out_row_values':
> /tmp/cc41QNAd.o(.text+0x10a): undefined reference to `tds_get_null'
> /tmp/cc41QNAd.o(.text+0x139): undefined reference to
> `tds_get_conversion_type'
> /tmp/cc41QNAd.o(.text+0x160): undefined reference to `tds_convert'
> /tmp/cc41QNAd.o: In function `main':
> /tmp/cc41QNAd.o(.text+0x1e2): undefined reference to `tds_alloc_login'
> /tmp/cc41QNAd.o(.text+0x200): undefined reference to `tds_set_passwd'
> /tmp/cc41QNAd.o(.text+0x21c): undefined reference to `tds_set_user'
> /tmp/cc41QNAd.o(.text+0x22d): undefined reference to `tds_set_app'
> /tmp/cc41QNAd.o(.text+0x23e): undefined reference to `tds_set_host'
> /tmp/cc41QNAd.o(.text+0x24f): undefined reference to `tds_set_library'
> /tmp/cc41QNAd.o(.text+0x26b): undefined reference to `tds_set_server'
> /tmp/cc41QNAd.o(.text+0x27c): undefined reference to `tds_set_charset'
> /tmp/cc41QNAd.o(.text+0x28d): undefined reference to `tds_set_language'
> /tmp/cc41QNAd.o(.text+0x29e): undefined reference to `tds_set_packet'
> /tmp/cc41QNAd.o(.text+0x2aa): undefined reference to `tds_connect'
> /tmp/cc41QNAd.o(.text+0x2f3): undefined reference to `tds_submit_query'
> /tmp/cc41QNAd.o(.text+0x305): undefined reference to
> `tds_process_result_tokens'
> /tmp/cc41QNAd.o(.text+0x345): undefined reference to
> `tds_process_row_tokens'
> collect2: ld returned 1 exit status
>
> ---
> You are currently subscribed to freetds as: [mark AT champ.tstonramp.com]
> To unsubscribe, forward this message to $subst('Email.Unsub')
>


--
Mark J. Schaal Phone: (909) 620-7724
TST On Ramp Fax: (909) 620-8174
System Administrator E-Mail: mark AT tstonramp.com




Archive powered by MHonArc 2.6.24.

Top of Page