473,608 Members | 2,264 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Linking Error with .Net compiler

Hi

I've a COM compiled in visual studio 6 that is internally using zlib library
(an opensource library for compression). I've no problem compiling that
code. But when I moved to visual studio.Net it started giving me linker
errors. The errors are given below. Is there any compiler option in the .Net
studio that I'm missing because if there were a problem with the zlib
library that I'm using, it must have given errors in VS 6 too. If someone
has had any simmilar problems, please guide.

The linking errors are
HCDirectory error LNK2019: unresolved external symbol _crc32 referenced in
function "public: unsigned long __thiscall CZipArchive::Re adFile(void
*,unsigned long)" (?ReadFile@CZip Archive@@QAEKPA XK@Z)
HCDirectory error LNK2019: unresolved external symbol _deflate referenced in
function "public: bool __thiscall CZipArchive::Wr iteNewFile(void *,unsigned
long)" (?WriteNewFile@ CZipArchive@@QA E_NPAXK@Z)
HCDirectory error LNK2019: unresolved external symbol _deflateEnd referenced
in function "public: bool __thiscall CZipArchive::Cl oseNewFile(void )"
(?CloseNewFile@ CZipArchive@@QA E_NXZ)
HCDirectory error LNK2019: unresolved external symbol _deflateInit2_
referenced in function "public: bool __thiscall
CZipArchive::Op enNewFile(class CZipFileHeader &,int,char const *)"
(?OpenNewFile@C ZipArchive@@QAE _NAAVCZipFileHe ader@@HPBD@Z)
HCDirectory error LNK2019: unresolved external symbol _get_crc_table
referenced in function "protected: unsigned long __thiscall
CZipArchive::Cr yptCRC32(unsign ed long,char)"
(?CryptCRC32@CZ ipArchive@@IAEK KD@Z)
HCDirectory error LNK2019: unresolved external symbol _inflate referenced in
function "public: unsigned long __thiscall CZipArchive::Re adFile(void
*,unsigned long)" (?ReadFile@CZip Archive@@QAEKPA XK@Z)
HCDirectory error LNK2019: unresolved external symbol _inflateEnd referenced
in function "public: int __thiscall CZipArchive::Cl oseFile(char const
*,bool)" (?CloseFile@CZi pArchive@@QAEHP BD_N@Z)
HCDirectory error LNK2019: unresolved external symbol _inflateInit2_
referenced in function "public: bool __thiscall
CZipArchive::Op enFile(unsigned short)" (?OpenFile@CZip Archive@@QAE_NG @Z)
HCDirectory fatal error LNK1120: 8 unresolved externals
Regards

Usman
Dec 19 '05 #1
0 1676

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

Similar topics

2
1427
by: Avi Uziel | last post by:
Hi All, I have a linkage problem that I believe related to template instantiation. My environment is Solaris 5.6, Compiler WorkShop 5. I'm building a shared library which use templates. During a "good" linkage (in other projects) the ld use the objects under the SunWS_cache which are the template classes created by the compiler. e.g. (two last lines) /usr/ccs/bin/ld -dy -z defs -dy -G -L/p/sparcworks/SUNWspro/SC5.0/lib
7
5097
by: Steven T. Hatton | last post by:
Is there anything that gives a good description of how source code is converted into a translation unit, then object code, and then linked. I'm particularly interested in understanding why putting normal functions in header files results in multiple definition errors even when include guards are used. -- STH Hatton's Law: "There is only One inviolable Law" KDevelop: http://www.kdevelop.org SuSE: http://www.suse.com Mozilla:...
1
6091
by: Venky | last post by:
I'm compiling a C program that is using Interbase 6.0 APIS. Getting the following errors at the time of linking. Linking test.exe: Linker Warning: No module definition file specified: using defaults Linker Error: Undefined symbol isc_detach_database in module TEST.C ..... ..... If I set the option not to generate the underscore (function prefixed with "_") I get the following errors. Interbase 6.0 APIs resolved
2
7243
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). Posts concerning this topic are common, but none of the posted solutions I've tried work correctly with the above software. The linker can't seem to find the dll (reports 'unresolved external symbol __imp__IMSL_FUN@8'; IMSL_FUN.dll is the f77...
7
6543
by: wmkew | last post by:
Hello everyone I'm encountering a R6002 Runtime error and several bugs when trying to generate a simple Managed C++ application with .NET 2003. The main problem seems to arise from linking with LIBCMT(D).DLL. (My requirement is that we can't link with MSVCRT(D).LIB.) Below are steps I've followed, and the resulting problems 1. Using the New Project wizard, generate a Visual C++ .NET Class Library project (call it "Doomed") and a VC++...
10
2675
by: Julian | last post by:
I get the following error when i try to link a fortran library to a c++ code in .NET 2005. LINK : fatal error LNK1104: cannot open file 'libc.lib' the code was working fine when built using .NET2003. also, when I do not try to link the fortran library (just to see if that was the cause), it builds the exe without any problems. i don't even know how to begin addressing this problem...any help would be
5
2845
by: eberesche | last post by:
Hello, as a novice in ASN.1 I have me to a project in C ++ under use of ASN.1 - structures risquély. One of my colleagues means, this would deal something with masochism ;-). Result should be a DLL which provides the exchange of documents between a DMS and a remote data base. My developing environment is MSVS v.7.1, and the ASN.1 - source texts are generated with the compiler asn1c-0.9.20. Therefore I have in the project cpp-, as well as c...
0
3970
by: xieml2007 | last post by:
Dear Madam or Sir, I encountered one problem which is quite similiar to the discussions launched at the web site: http://www.thescripts.com/forum/thread280324.html
9
3688
by: a-lbi | last post by:
I use gcc compiler (version 2.8.1). During linking I get the following error message: Undefined first referenced symbol in file log10l /opt/gcc_4.1.2/solaris10/lib/ libgfortran.a(write.o) strtof /opt/gcc_4.1.2/solaris10/lib/ libgfortran.a(read.o) strtold /opt/gcc_4.1.2/solaris10/lib/
0
8063
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8475
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8148
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
6013
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5475
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
3962
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4024
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2474
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1594
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.