Help linking dll in VC7 .Net

H

Hadi

Hi,

I have two files libqdbm.dll.a and qdbm.dll. In cygwin libqdbm.dll.a is
located in /usr/local/lib while qdbm.dll is located in windows/system32.

I have my test project which I compiled in cygwin using the following
command:

gcc -I/usr/local/include -o test test.c -L/usr/local/lib -lqdbm

and it works fine. Now the problem is how do I convert this to Visual Studio
project? I manage to get the header files working fine but I'm not sure how
to link the other library. I got the following error messages:

QdbmWrap error LNK2001: unresolved external symbol "int dpecode"
(?dpecode@@3HA)
QdbmWrap error LNK2019: unresolved external symbol "char * __cdecl
dpget(struct DEPOT *,char const *,int,int,int,int *)"
(?dpget@@YAPADPAUDEPOT@@PBDHHHPAH@Z) referenced in function _main
QdbmWrap error LNK2019: unresolved external symbol "char const * __cdecl
dperrmsg(int)" (?dperrmsg@@YAPBDH@Z) referenced in function _main
QdbmWrap error LNK2019: unresolved external symbol "int __cdecl
dpclose(struct DEPOT *)" (?dpclose@@YAHPAUDEPOT@@@Z) referenced in function
_main
QdbmWrap error LNK2019: unresolved external symbol "int __cdecl dpput(struct
DEPOT *,char const *,int,char const *,int,int)"
(?dpput@@YAHPAUDEPOT@@PBDH1HH@Z) referenced in function _main
QdbmWrap error LNK2019: unresolved external symbol "struct DEPOT * __cdecl
dpopen(char const *,int,int)" (?dpopen@@YAPAUDEPOT@@PBDHH@Z) referenced in
function _main
QdbmWrap fatal error LNK1120: 6 unresolved externals

Any help anyone?

Thanks,

Hadi
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top