Sybase NNTP forums - End Of Life (EOL)

The NNTP forums from Sybase - forums.sybase.com - are now closed.

All new questions should be directed to the appropriate forum at the SAP Community Network (SCN).

Individual products have links to the respective forums on SCN, or you can go to SCN and search for your product in the search box (upper right corner) to find your specific developer center.

Linker errors in CT library and TDS library

2 posts in General Discussion Last posting was on 2008-03-07 17:17:35.0Z
Vikas Posted on 2008-03-07 16:18:14.0Z
Sender: 1f08.47d1669f.846930886@sybase.com
From: Vikas
Newsgroups: ianywhere.public.general
Subject: Linker errors in CT library and TDS library
X-Mailer: WebNews to Mail Gateway v1.1t
Message-ID: <47d16ac6.1fed.1681692777@sybase.com>
NNTP-Posting-Host: 10.22.241.41
X-Original-NNTP-Posting-Host: 10.22.241.41
Date: 7 Mar 2008 08:18:14 -0800
X-Trace: forums-1-dub 1204906694 10.22.241.41 (7 Mar 2008 08:18:14 -0800)
X-Original-Trace: 7 Mar 2008 08:18:14 -0800, 10.22.241.41
Lines: 158
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub ianywhere.public.general:6749
Article PK: 4993

Hi,

I am trying to port a C code from Solaris to Windows 2003
(using Visual studio 2005). While compiling the C files in
VS2005 , the following linker errors are seen.

What I could find is that the errors are because of the
files related to the CT, CS and TDS libraries.

Please suggest on the errors.

ct.obj : error LNK2019: unresolved external symbol
__ct_handle_client_message referenced in function _ct_init

ct.obj : error LNK2019: unresolved external symbol
__ct_handle_server_message referenced in function _ct_init

ct.obj : error LNK2019: unresolved external symbol
_tds_set_library referenced in function _ct_con_alloc

ct.obj : error LNK2019: unresolved external symbol
_tds_free_login referenced in function _ct_con_alloc

ct.obj : error LNK2019: unresolved external symbol
_tds_alloc_login referenced in function _ct_con_alloc

ct.obj : error LNK2019: unresolved external symbol
_tds_version referenced in function _ct_con_props

ct.obj : error LNK2019: unresolved external symbol
__cs_locale_copy_inplace referenced in function
_ct_con_props

ct.obj : error LNK2019: unresolved external symbol
_tds_strlcpy referenced in function _ct_con_props

ct.obj : error LNK2019: unresolved external symbol
_tds_set_version referenced in function _ct_con_props

ct.obj : error LNK2019: unresolved external symbol
_tds_set_packet referenced in function _ct_con_props

ct.obj : error LNK2019: unresolved external symbol
_tds_set_bulk referenced in function _ct_con_props

ct.obj : error LNK2019: unresolved external symbol
__cs_locale_copy referenced in function _ct_con_props

ct.obj : error LNK2019: unresolved external symbol
__cs_locale_free referenced in function _ct_con_props

ct.obj : error LNK2019: unresolved external symbol
_tds_set_server_addr referenced in function _ct_con_props

ct.obj : error LNK2019: unresolved external symbol
_tds_set_port referenced in function _ct_con_props

ct.obj : error LNK2019: unresolved external symbol
_tds_set_host referenced in function _ct_con_props

ct.obj : error LNK2019: unresolved external symbol
_tds_set_app referenced in function _ct_con_props

ct.obj : error LNK2019: unresolved external symbol
_tds_set_passwd referenced in function _ct_con_props

ct.obj : error LNK2019: unresolved external symbol
_tds_set_user referenced in function _ct_con_props

ct.obj : error LNK2019: unresolved external symbol
_tds_free_connection referenced in function _ct_connect

ct.obj : error LNK2019: unresolved external symbol
_tds_connect referenced in function _ct_connect

ct.obj : error LNK2019: unresolved external symbol
_tds_dstr_copy referenced in function _ct_connect

ct.obj : error LNK2019: unresolved external symbol
_tds_free_socket referenced in function _ct_connect

ct.obj : error LNK2019: unresolved external symbol
_tds_read_config_info referenced in function _ct_connect

ct.obj : error LNK2019: unresolved external symbol
_tds_set_parent referenced in function _ct_connect

ct.obj : error LNK2019: unresolved external symbol
_tds_alloc_socket referenced in function _ct_connect

ct.obj : error LNK2019: unresolved external symbol
_tds_set_server referenced in function _ct_connect

ct.obj : error LNK2019: unresolved external symbol
_tds_free_all_results referenced in function _ct_send

ct.obj : error LNK2019: unresolved external symbol
_tds_cursor_dealloc referenced in function _ct_send

ct.obj : error LNK2019: unresolved external symbol
_tds_release_cursor referenced in function _ct_send

ct.obj : error LNK2019: unresolved external symbol
_tds_cursor_close referenced in function _ct_send

ct.obj : error LNK2019: unresolved external symbol
_tds_set_state referenced in function _ct_send

ct.obj : error LNK2019: unresolved external symbol
_tds_flush_packet referenced in function _ct_send

ct.obj : error LNK2019: unresolved external symbol
_tds_cursor_open referenced in function _ct_send

ct.obj : error LNK2019: unresolved external symbol
_tds_cursor_setrows referenced in function _ct_send

ct.obj : error LNK2019: unresolved external symbol
_tds_cursor_declare referenced in function _ct_send

ct.obj : error LNK2019: unresolved external symbol
_tds_submit_query referenced in function _ct_send

ct.obj : error LNK2019: unresolved external symbol
_tds_submit_query_params referenced in function _ct_send

ct.obj : error LNK2019: unresolved external symbol
_tds_free_param_results referenced in function _ct_send

ct.obj : error LNK2019: unresolved external symbol
_tds_submit_rpc referenced in function _ct_send

ct.obj : error LNK2019: unresolved external symbol
_tds_submit_unprepare referenced in function _ct_send

ct.obj : error LNK2019: unresolved external symbol
_tds_submit_execute referenced in function _ct_send

ct.obj : error LNK2019: unresolved external symbol
_tds_free_input_params referenced in function _ct_send

ct.obj : error LNK2019: unresolved external symbol
_tds_lookup_dynamic referenced in function _ct_send

ct.obj : error LNK2019: unresolved external symbol
_tds_submit_prepare referenced in function _ct_send

ct.obj : error LNK2019: unresolved external symbol
_tds_process_tokens referenced in function _ct_results

ct.obj : error LNK2019: unresolved external symbol _tds_peek
referenced in function _ct_fetch

ct.obj : error LNK2019: unresolved external symbol
_tds_cursor_fetch referenced in function __ct_fetch_cursor

ct.obj : error LNK2019: unresolved external symbol
_cs_convert referenced in function __ct_bind_data


"Nick Elson" < Posted on 2008-03-07 17:17:35.0Z
From: "Nick Elson" <@@@nick@@@.@@@elson@sybase@@@.@@@com@@@>
Newsgroups: ianywhere.public.general
References: <47d16ac6.1fed.1681692777@sybase.com>
Subject: Re: Linker errors in CT library and TDS library
Lines: 165
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2869
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2962
X-RFC2646: Format=Flowed; Original
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Message-ID: <47d178af$1@forums-1-dub>
Date: 7 Mar 2008 09:17:35 -0800
X-Trace: forums-1-dub 1204910255 10.22.241.152 (7 Mar 2008 09:17:35 -0800)
X-Original-Trace: 7 Mar 2008 09:17:35 -0800, vip152.sybase.com
X-Authenticated-User: techsupp
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub ianywhere.public.general:6750
Article PK: 4994

Wrong newsgroup.

Try sybase.public.connectivity.open_client instead.

<Vikas> wrote in message news:47d16ac6.1fed.1681692777@sybase.com...
> Hi,
>
> I am trying to port a C code from Solaris to Windows 2003
> (using Visual studio 2005). While compiling the C files in
> VS2005 , the following linker errors are seen.
>
> What I could find is that the errors are because of the
> files related to the CT, CS and TDS libraries.
>
> Please suggest on the errors.
>
> ct.obj : error LNK2019: unresolved external symbol
> __ct_handle_client_message referenced in function _ct_init
>
> ct.obj : error LNK2019: unresolved external symbol
> __ct_handle_server_message referenced in function _ct_init
>
> ct.obj : error LNK2019: unresolved external symbol
> _tds_set_library referenced in function _ct_con_alloc
>
> ct.obj : error LNK2019: unresolved external symbol
> _tds_free_login referenced in function _ct_con_alloc
>
> ct.obj : error LNK2019: unresolved external symbol
> _tds_alloc_login referenced in function _ct_con_alloc
>
> ct.obj : error LNK2019: unresolved external symbol
> _tds_version referenced in function _ct_con_props
>
> ct.obj : error LNK2019: unresolved external symbol
> __cs_locale_copy_inplace referenced in function
> _ct_con_props
>
> ct.obj : error LNK2019: unresolved external symbol
> _tds_strlcpy referenced in function _ct_con_props
>
> ct.obj : error LNK2019: unresolved external symbol
> _tds_set_version referenced in function _ct_con_props
>
> ct.obj : error LNK2019: unresolved external symbol
> _tds_set_packet referenced in function _ct_con_props
>
> ct.obj : error LNK2019: unresolved external symbol
> _tds_set_bulk referenced in function _ct_con_props
>
> ct.obj : error LNK2019: unresolved external symbol
> __cs_locale_copy referenced in function _ct_con_props
>
> ct.obj : error LNK2019: unresolved external symbol
> __cs_locale_free referenced in function _ct_con_props
>
> ct.obj : error LNK2019: unresolved external symbol
> _tds_set_server_addr referenced in function _ct_con_props
>
> ct.obj : error LNK2019: unresolved external symbol
> _tds_set_port referenced in function _ct_con_props
>
> ct.obj : error LNK2019: unresolved external symbol
> _tds_set_host referenced in function _ct_con_props
>
> ct.obj : error LNK2019: unresolved external symbol
> _tds_set_app referenced in function _ct_con_props
>
> ct.obj : error LNK2019: unresolved external symbol
> _tds_set_passwd referenced in function _ct_con_props
>
> ct.obj : error LNK2019: unresolved external symbol
> _tds_set_user referenced in function _ct_con_props
>
> ct.obj : error LNK2019: unresolved external symbol
> _tds_free_connection referenced in function _ct_connect
>
> ct.obj : error LNK2019: unresolved external symbol
> _tds_connect referenced in function _ct_connect
>
> ct.obj : error LNK2019: unresolved external symbol
> _tds_dstr_copy referenced in function _ct_connect
>
> ct.obj : error LNK2019: unresolved external symbol
> _tds_free_socket referenced in function _ct_connect
>
> ct.obj : error LNK2019: unresolved external symbol
> _tds_read_config_info referenced in function _ct_connect
>
> ct.obj : error LNK2019: unresolved external symbol
> _tds_set_parent referenced in function _ct_connect
>
> ct.obj : error LNK2019: unresolved external symbol
> _tds_alloc_socket referenced in function _ct_connect
>
> ct.obj : error LNK2019: unresolved external symbol
> _tds_set_server referenced in function _ct_connect
>
> ct.obj : error LNK2019: unresolved external symbol
> _tds_free_all_results referenced in function _ct_send
>
> ct.obj : error LNK2019: unresolved external symbol
> _tds_cursor_dealloc referenced in function _ct_send
>
> ct.obj : error LNK2019: unresolved external symbol
> _tds_release_cursor referenced in function _ct_send
>
> ct.obj : error LNK2019: unresolved external symbol
> _tds_cursor_close referenced in function _ct_send
>
> ct.obj : error LNK2019: unresolved external symbol
> _tds_set_state referenced in function _ct_send
>
> ct.obj : error LNK2019: unresolved external symbol
> _tds_flush_packet referenced in function _ct_send
>
> ct.obj : error LNK2019: unresolved external symbol
> _tds_cursor_open referenced in function _ct_send
>
> ct.obj : error LNK2019: unresolved external symbol
> _tds_cursor_setrows referenced in function _ct_send
>
> ct.obj : error LNK2019: unresolved external symbol
> _tds_cursor_declare referenced in function _ct_send
>
> ct.obj : error LNK2019: unresolved external symbol
> _tds_submit_query referenced in function _ct_send
>
> ct.obj : error LNK2019: unresolved external symbol
> _tds_submit_query_params referenced in function _ct_send
>
> ct.obj : error LNK2019: unresolved external symbol
> _tds_free_param_results referenced in function _ct_send
>
> ct.obj : error LNK2019: unresolved external symbol
> _tds_submit_rpc referenced in function _ct_send
>
> ct.obj : error LNK2019: unresolved external symbol
> _tds_submit_unprepare referenced in function _ct_send
>
> ct.obj : error LNK2019: unresolved external symbol
> _tds_submit_execute referenced in function _ct_send
>
> ct.obj : error LNK2019: unresolved external symbol
> _tds_free_input_params referenced in function _ct_send
>
> ct.obj : error LNK2019: unresolved external symbol
> _tds_lookup_dynamic referenced in function _ct_send
>
> ct.obj : error LNK2019: unresolved external symbol
> _tds_submit_prepare referenced in function _ct_send
>
> ct.obj : error LNK2019: unresolved external symbol
> _tds_process_tokens referenced in function _ct_results
>
> ct.obj : error LNK2019: unresolved external symbol _tds_peek
> referenced in function _ct_fetch
>
> ct.obj : error LNK2019: unresolved external symbol
> _tds_cursor_fetch referenced in function __ct_fetch_cursor
>
> ct.obj : error LNK2019: unresolved external symbol
> _cs_convert referenced in function __ct_bind_data