Skip to Content.
Sympa Menu

freetds - [freetds] Freetds-Stable 0.91: VS2010 compiling errors (LNK2001, LNK2019, LNK1120)

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "H.Meier" <safeonlinework-freetds AT yahoo.de>
  • To: freetds AT lists.ibiblio.org
  • Subject: [freetds] Freetds-Stable 0.91: VS2010 compiling errors (LNK2001, LNK2019, LNK1120)
  • Date: Sun, 18 Nov 2012 18:54:53 +0000 (GMT)

Hi,

im trying to compile freetds-stable 0.91 under VS2010.
I tested around a lot also reading the docu and threads in the list but i
dont get it. (not coming from c, so i dont know rly what i have to do)

Ok startig from the beginning.

I want to use freetds to connect to a sybase SQLAnywhere 9/11 server over
ODBC in .NET (atm i use ASA9-driver from sybase).

So i downloaded the 0.91-stable package, and converted it to a 2010 solution.
After fixing the #def in config.h im able to compile the db-lib.lib, size:
2648kb.

After that i converted the FreeTDS.dsw in msvsc to an vs2010-solution.
Then i tried to compile and got around 300 warning C4996 warnings:
unsafe...whatever.

I added USE_STANDARD_FILE_FUNCTIONS;_CRT_SECURE_NO_WARNINGS; to the
Preprocessor Definitions of all projects and compiled again and theyre gone.

But there are still 67 LNK2001,LNK2019,LNK1120 error(see end of th eposting)

It would be very nice if some1 can help me with it.

Btw i tried FreeTDSForWindows and in this package is no FreeTDS.Dll, instead
theres a libtdsodbc-0.dll !?

So the question is what/which files do i need rly to connect over ODBC to an
SQL-Anywhere server, and how to compile them under VS210 (XP).

Thx so far
Regards

Compile-errors:

rpc.c
dbutil.c
dbopen.cd
blib.c
c:\freetds - 0,91 \ src \ dblib \ dblib.c (5201): warning C4146: An unary
minus operator was assigned to an unsigned type. The result is further
unsigned.
c:\freetds - 0,91 \ src \ dblib \ dblib.c (5334): warning C4146: An unary
minus operator was assigned to an unsigned type. The result is further
unsigned.
c:\freetds - 0,91 \ src \ dblib \ dblib.c (5360): warning C4146: An unary
minus operator was assigned to an unsigned type. The result is further
unsigned.
Code generated…
Library “. \ dbdll_Debug \ dblib_dll.lib” and object “. \ dbdll_Debug \
dblib_dll.exp” are provided.

dblib.obj: error LNK2019: Reference to not dissolved external symbol
“_tdsdump_log” in function “_dbinit”.
dbutil.obj: error LNK2001: Not dissolved external symbol “_tdsdump_log”.
rpc.obj: error LNK2001: Not dissolved external symbol “_tdsdump_log”.
dblib.obj: error LNK2001: Not dissolved external symbol “_tds_write_dump”.
dbutil.obj: error LNK2001: Not dissolved external symbol “_tds_write_dump”.
rpc.obj: error LNK2001: Not dissolved external symbol “_tds_write_dump”.

dblib.obj: error LNK2019: Reference to not dissolved external symbol
“_tds_win_mutex_lock” in function “_dbinit”.
dblib.obj: error LNK2019: Reference to not dissolved external symbol
“_tds_alloc_context” in function “_dblib_get_tds_ctx”.
dblib.obj: error LNK2019: Reference to not dissolved external symbol
“_tds_set_library” in function “_dblogin”.
dblib.obj: error LNK2019: Reference to not dissolved external symbol
“_tds_alloc_login” in function “_dblogin”.
dblib.obj: error LNK2019: Reference to not dissolved external symbol
“_tds_free_login” in function “_dbloginfree”.
dblib.obj: error LNK2019: Reference to not dissolved external symbol
“_tds_set_database_name” in function “_dbsetlname”.
dblib.obj: error LNK2019: Reference to not dissolved external symbol
“_tds_set_language” in function “_dbsetlname”.
dblib.obj: error LNK2019: Reference to not dissolved external symbol
“_tds_set_client_charset” in function “_dbsetlname”.
dblib.obj: error LNK2019: Reference to not dissolved external symbol
“_tds_set_App” in function “_dbsetlname”.
dblib.obj: error LNK2019: Reference to not dissolved external symbol
“_tds_set_passwd” in function “_dbsetlname”.
dblib.obj: error LNK2019: Reference to not dissolved external symbol “more
_tds_set_user” in function “_dbsetlname”.
dblib.obj: error LNK2019: Reference to not dissolved external symbol
“_tds_set_host” in function “_dbsetlname”.
dblib.obj: error LNK2019: Reference to not dissolved external symbol
“_tds_set_packet” in function “_dbsetllong”.
dblib.obj: error LNK2019: Reference to not dissolved external symbol
“_tds_set_bulk” in function “_dbsetlbool”.
dblib.obj: error LNK2019: Reference to not dissolved external symbol
“_tds_set_version” in function “_dbsetlversion”.

dbutil.obj: error LNK2001: Not dissolved external symbol “_tds_set_version”.

dblib.obj: error LNK2019: Reference to not dissolved external symbol
“_asprintf” in function “_tdsdbopen”.
dblib.obj: error LNK2019: Reference to not dissolved external symbol
“_tds_free_connection” in function “_tdsdbopen”.
dblib.obj: error LNK2019: Reference to not dissolved external symbol
“_tds_connect_and_login” in function “_tdsdbopen”.
dblib.obj: error LNK2019: Reference to not dissolved external symbol
“_tds_fix_connection” in function “_tdsdbopen”.
dblib.obj: error LNK2019: Reference to not dissolved external symbol
“_tds_read_config_info” in function “_tdsdbopen”.
dblib.obj: error LNK2019: Reference to not dissolved external symbol
“_tds_set_parent” in function “_tdsdbopen”.
dblib.obj: error LNK2019: Reference to not dissolved external symbol
“_tds_alloc_socket” in function “_tdsdbopen”.
dblib.obj: error LNK2019: Reference to not dissolved external symbol “more
_tds_set_server” in function “_tdsdbopen”.
dblib.obj: error LNK2019: Reference to not dissolved external symbol
“_tds_free_results” in function “_buffer_free_row”.
dblib.obj: error LNK2019: Reference to not dissolved external symbol
“_tds_free_row” in function “_buffer_free_row”.
dblib.obj: error LNK2019: Reference to not dissolved external symbol
“_tds_strlcpy” in function “_db_env_chg”.

rpc.obj: error LNK2001: Not dissolved external symbol “_tds_strlcpy”.

dblib.obj: error LNK2019: Reference to not dissolved external symbol
“_vasprintf” in function “_dbfcmd”.
dblib.obj: error LNK2019: Reference to not dissolved external symbol
“_tds_quote_id” in function “_dbuse”.
dblib.obj: error LNK2019: Reference to not dissolved external symbol
“_tds_free_socket” in function “_dbclose”.
dblib.obj: error LNK2019: Reference to not dissolved external symbol
“_tds_free_context” in function “_dblib_release_tds_ctx”.
dblib.obj: error LNK2019: Reference to not dissolved external symbol
“_tds_process_tokens” in function “__dbresults”.
dblib.obj: error LNK2019: Reference to not dissolved external symbol
“_tds_get_conversion_type” in function “_buffer_transfer_bound_data”.
dblib.obj: error LNK2019: Reference to not dissolved external symbol
“_tdsdump_dump_buf” in function “_dbsetnull”.
dblib.obj: error LNK2019: Reference to not dissolved external symbol
“_tds_alloc_row” in function “_buffer_save_row”.
dblib.obj: error LNK2019: Reference to not dissolved external symbol
“_tds_convert” in function “_dbconvert”.
dblib.obj: error LNK2019: Reference to not dissolved external symbol
“_tds_get_size_by_type” in function “_dbconvert”.

rpc.obj: error LNK2001: Not dissolved external symbol “_tds_get_size_by_type”.

dblib.obj: error LNK2019: Reference to not dissolved external symbol
“_tds_set_interfaces_file_loc” in function “_dbsetifile”.
dblib.obj: error LNK2019: Reference to not dissolved external symbol
“_tds_willconvert” in function “_dbwillconvert”.
dblib.obj: error LNK2019: Reference to not dissolved external symbol
“_tds_process_cancel” in function “_dbcancel”.
dblib.obj: error LNK2019: Reference to not dissolved external symbol
“_tds_send_cancel” in function “_dbcancel”.
dblib.obj: error LNK2019: Reference to not dissolved external symbol
“_tds_strftime” in function “_dbspr1row”.
dblib.obj: error LNK2019: Reference to not dissolved external symbol
“_tds_datecrack” in function “_dbspr1row”.

dblib.obj: error LNK2001: Not dissolved external symbol “_STD_DATETIME_FMT”.

dblib.obj: error LNK2019: Reference to not dissolved external symbol
“_tds_flush_packet” in function “_dbsqlok”.
dblib.obj: error LNK2019: Reference to not dissolved external symbol
“_tds_prtype” in function “_dbprtype”.
dblib.obj: error LNK2019: Reference to not dissolved external symbol
“_tds_writetext_end” in function “_dbwritetext”.
dblib.obj: error LNK2019: Reference to not dissolved external symbol
“_tds_writetext_continue” in function “_dbwritetext”.
dblib.obj: error LNK2019: Reference to not dissolved external symbol
“_tds_writetext_start” in function “_dbwritetext”.
dblib.obj: error LNK2019: Reference to not dissolved external symbol
“_tds_submit_query” in function “_dbsqlsend”.
dblib.obj: error LNK2019: Reference to not dissolved external symbol
“_tds_vstrbuild” in function “_dbstrbuild”.
rpc.obj: error LNK2019: Reference to not dissolved external symbol
“_tds_free_param_results” in function “_dbrpcsend”.
rpc.obj: error LNK2019: Reference to not dissolved external symbol
“_tds_submit_rpc” in function “_dbrpcsend”.
rpc.obj: error LNK2019: Reference to not dissolved external symbol
“_tds_set_param_type” in function “_param_info_alloc”.
rpc.obj: error LNK2019: Reference to not dissolved external symbol
“_tds_get_null_type” in function “_param_info_alloc”.
rpc.obj: error LNK2001: Not dissolved external symbol
“_tds_numeric_bytes_per_prec”.
rpc.obj: error LNK2019: Reference to not dissolved external symbol
“_tds_alloc_param_result” in function “_param_info_alloc”.
rpc.obj: error LNK2019: Reference to not dissolved external symbol
“_tds_alloc_param_data” in function “_param_row_alloc”.

. \ dbdll_Debug \ dblib_dll.dll: fatal error LNK1120: 59 not dissolved
external of references.








Archive powered by MHonArc 2.6.24.

Top of Page