473,385 Members | 1,919 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Help linking dll in VC7 .Net

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


Nov 17 '05 #1
1 2105
No one has any idea?
"Hadi" <ha**@no.spam.com> wrote in message
news:et**************@TK2MSFTNGP10.phx.gbl...
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


Nov 17 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: George Hernandez | last post by:
I have a site on a set of Linux Servers where my site is PHP enabled and I would like to prevent people from externally linking to content on my site and replace it with a warning image. I've...
0
by: Wolfgang | last post by:
I have a problem with linking my CPP Code under a irix6 machine (sgi, UNIX). In my CPP code I use some Functions which are written in Python. So its a kind of CPP wrapper for my Python functions In...
20
by: Steven T. Hatton | last post by:
I just read this in the description of how C++ is supposed to be implemented: "All external object and function references are resolved. Library components are linked to satisfy external...
5
by: Arvin Portlock | last post by:
I can't come up with a query that works. Can anyone help? Conceptually the relationships are easy to describe. I have a table for books (Entries), a table for authors (Authors), and a linking...
4
by: Gary Hughes | last post by:
Hi all, sometime I posted a problem in here where I was getting the following error from the linker in VS C++ 2003. Linking... GCClass.obj : error LNK2022: metadata operation failed (80131188)...
2
by: | last post by:
Help! I'm new to c++, and am breaking my teeth on MS Visual C++ (bundled within Visual Studio .NET 2003). Am trying to link simple c++ code to fortran dlls created in Compaq Visual Fortran (v6.1)....
3
by: Alex Shturm | last post by:
Hi, I am trying to activate incremental link using VC7 (.NET 2003) on a pretty big project (executable size is more than 100Mb, and it gets linked from several dozen of libraries and object...
0
by: Philip Lowman | last post by:
I am in the process of trying to migrate a couple of build solutions to Visual Studio Express 2005 from VS 2003 Professional and I am running into a weird C/C++ runtime library linking issue when...
3
by: ARC | last post by:
I'm having trouble here with Access 2007 and connecting to a different database. The code below works great IF the previous back-end database connection is still present and you are trying to...
1
by: KayC | last post by:
Hi, I am running Access2002. I have to support a legacy Access database that has a linked table to a .prn file On one machine a vba routine can open and manipute the linked table. On another...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.