Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
AskSQLTeam
Ask SQLTeam Question
0 Posts |
Posted - 2003-02-24 : 19:35:30
|
| Mika writes "Hi,I have a c++ code that uses bcp to get some results from sql server 2000.It goes thru the compiler just fine, but when I try to build it then it gives errors.error LNK2001: unresolved external symbol "short __stdcallbcp_exec(void *,long *)" (?bcp_exec@@YGFPAXPAJ@Z)error LNK2001: unresolved external symbol "short __stdcallbcp_control(void *,int,long)" (?bcp_control@@YGFPAXHJ@Z)error LNK2001: unresolved external symbol "short __stdcallbcp_init(void *,char const *,char const *,char const *,int)"(?bcp_init@@YGFPAXPBD11H@Z)Those are the errors I get. The code is done pretty much with cut and paste from BOL so it should work.I read from bol that the SQL Server 2000 ODBC driver must be linked with the Odbcbcp.lib file.But I can't find the odbcbcp.lib file from anywhere. I have thedesktop (or is it personal) edition from sql server 2000 installed. Is the file supposed to come with the sql server when you install it or do I have to install some sdk ?Or is the problem something else perhaps ?And also the header files needed to include in the project are the ones that come with VC++ and not SQL Server. Those files too should propably be in SQL Server lib / include folders but theres just one file in there (wn95scm.h).I'm using visual c++ 6.0 for coding.SQL Server 2000 sp3MDAC 2.7 RefreshThanks in advance,mkarja" |
|
|
|
|
|