|
|||||||
|
|
|
![]() |
|
|
Strumenti |
|
|
#1 |
|
Junior Member
Iscritto dal: Feb 2005
Città: como/milano
Messaggi: 12
|
[C++] Unresolved external Symbol
ciao
quando compilo un programma mi da i seguenti errori db.obj : error LNK2019: unresolved external symbol _SQLErrorW referenced in function "int __cdecl db_error(void)" (?db_error@@YAHXZ) db.obj : error LNK2019: unresolved external symbol _SQLFreeHandle referenced in function "int __cdecl db_disconnect(void)" (?db_disconnect@@YAHXZ) db.obj : error LNK2019: unresolved external symbol _SQLDisconnect referenced in function "int __cdecl db_disconnect(void)" (?db_disconnect@@YAHXZ) db.obj : error LNK2019: unresolved external symbol _SQLConnectW referenced in function "int __cdecl db_connect(unsigned short *,unsigned short *,unsigned short *)" (?db_connect@@YAHPAG00@Z) db.obj : error LNK2019: unresolved external symbol _SQLAllocHandle referenced in function "int __cdecl db_connect(unsigned short *,unsigned short *,unsigned short *)" (?db_connect@@YAHPAG00@Z) db.obj : error LNK2019: unresolved external symbol _SQLCloseCursor referenced in function "int __cdecl db_load_art(char *,int)" (?db_load_art@@YAHPADH@Z) db.obj : error LNK2019: unresolved external symbol _SQLFetch referenced in function "int __cdecl db_load_art(char *,int)" (?db_load_art@@YAHPADH@Z) db.obj : error LNK2019: unresolved external symbol _SQLExecDirectW referenced in function "int __cdecl db_load_art(char *,int)" (?db_load_art@@YAHPADH@Z) db.obj : error LNK2019: unresolved external symbol _SQLBindCol referenced in function "int __cdecl db_load_art(char *,int)" (?db_load_art@@YAHPADH@Z) db.obj : error LNK2019: unresolved external symbol _SQLBindParameter referenced in function "int __cdecl db_ins_rilev(unsigned short *,unsigned short *,int,unsigned short *,float)" (?db_ins_rilev@@YAHPAG0H0M@Z) qualche anima pia sa da cosa può dipendere ? grazie a tutti ciao ciao
__________________
il cobra non è un serpente! |
|
|
|
|
|
#2 |
|
Senior Member
Iscritto dal: Jan 2002
Messaggi: 2690
|
credo tu debba includere una libreria nel progetto
(un file lib per il linker, non un header file nel codice)
__________________
Saying that Java is nice because it works on all OS's is like saying that anal sex is nice because it works on all genders |
|
|
|
|
|
#3 | |
|
Junior Member
Iscritto dal: Feb 2005
Città: como/milano
Messaggi: 12
|
Quote:
ma il programma non l'ho fatto io e non so proprio quale può essere la libreria da includere , c'è un modo per capirlo? se può essere d'aiuto il file in cui si trovano quei SQLErrorW...SQLFreeHandle ecc ecc che gli danno problemi sono in un file che si chiama odbc.h
__________________
il cobra non è un serpente! |
|
|
|
|
|
|
#4 |
|
Senior Member
Iscritto dal: Apr 2000
Città: Vicino a Montecatini(Pistoia) Moto:Kawasaki Ninja ZX-9R Scudetti: 29
Messaggi: 53971
|
La libreria da linkare è odbc32.lib
|
|
|
|
|
| Strumenti | |
|
|
Tutti gli orari sono GMT +1. Ora sono le: 21:18.



















