473,406 Members | 2,356 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,406 software developers and data experts.

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::ReadFile(void
*,unsigned long)" (?ReadFile@CZipArchive@@QAEKPAXK@Z)
HCDirectory error LNK2019: unresolved external symbol _deflate referenced in
function "public: bool __thiscall CZipArchive::WriteNewFile(void *,unsigned
long)" (?WriteNewFile@CZipArchive@@QAE_NPAXK@Z)
HCDirectory error LNK2019: unresolved external symbol _deflateEnd referenced
in function "public: bool __thiscall CZipArchive::CloseNewFile(void)"
(?CloseNewFile@CZipArchive@@QAE_NXZ)
HCDirectory error LNK2019: unresolved external symbol _deflateInit2_
referenced in function "public: bool __thiscall
CZipArchive::OpenNewFile(class CZipFileHeader &,int,char const *)"
(?OpenNewFile@CZipArchive@@QAE_NAAVCZipFileHeader@ @HPBD@Z)
HCDirectory error LNK2019: unresolved external symbol _get_crc_table
referenced in function "protected: unsigned long __thiscall
CZipArchive::CryptCRC32(unsigned long,char)"
(?CryptCRC32@CZipArchive@@IAEKKD@Z)
HCDirectory error LNK2019: unresolved external symbol _inflate referenced in
function "public: unsigned long __thiscall CZipArchive::ReadFile(void
*,unsigned long)" (?ReadFile@CZipArchive@@QAEKPAXK@Z)
HCDirectory error LNK2019: unresolved external symbol _inflateEnd referenced
in function "public: int __thiscall CZipArchive::CloseFile(char const
*,bool)" (?CloseFile@CZipArchive@@QAEHPBD_N@Z)
HCDirectory error LNK2019: unresolved external symbol _inflateInit2_
referenced in function "public: bool __thiscall
CZipArchive::OpenFile(unsigned short)" (?OpenFile@CZipArchive@@QAE_NG@Z)
HCDirectory fatal error LNK1120: 8 unresolved externals
Regards

Usman
Dec 19 '05 #1
0 1664

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

Similar topics

2
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...
7
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...
1
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...
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)....
7
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...
10
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...
5
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...
0
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
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 ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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,...
0
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...
0
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...

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.