473,545 Members | 1,890 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

error LNK2001: unresolved external symbol - Ultra noob question

Hi,

I know less than a noob, I've been asked to do some compiles in VC++ 6
without knowing too much at all. (I'm a COBOL program normally so
this is all too much for me)

I open VC++6, open the workspace and then:

Build>Batch Build

I then select both my projects, click Build and get the following
errors:
-------------------Configuration: SS32X - Win32
Release--------------------
Linking...
Creating library Release/GH32X.lib and object Release/GH32X.exp
COUIFUNC.obj : error LNK2001: unresolved external symbol "long __cdecl
ReadRegistry(ch ar *)" (?ReadRegistry@ @YAJPAD@Z)
COUIFUNC.obj : error LNK2001: unresolved external symbol "int __cdecl
WriteRegistry(l ong,long)" (?WriteRegistry @@YAHJJ@Z)
Release/GH32X.exe : fatal error LNK1120: 2 unresolved externals
Error executing link.exe.

SS32X.exe - 3 error(s), 0 warning(s)
--------------------Configuration: SS32X - Win32
Debug--------------------
Linking...
Creating library Debug/GH32X.lib and object Debug/GH32X.exp
COUIFUNC.obj : error LNK2001: unresolved external symbol "long __cdecl
ReadRegistry(ch ar *)" (?ReadRegistry@ @YAJPAD@Z)
COUIFUNC.obj : error LNK2001: unresolved external symbol "int __cdecl
WriteRegistry(l ong,long)" (?WriteRegistry @@YAHJJ@Z)
Debug/GH32X.exe : fatal error LNK1120: 2 unresolved externals
Error executing link.exe.

GH32X.exe - 3 error(s), 0 warning(s)

Thanks a lot if anyone can tell me firstly what all this really means,
secondly how to resolve it, I'd appreciate details of what to type
where, I might not understand the instructions otherwise ;))))

Cheers

Yaz
Jul 22 '05 #1
3 6061
First, the right newsgroup for this questions is comp.os.ms-
windows.program mer.win32.

Secondly, it looks like you are not linking the windows libraries
correctly, as your undefined symbols are registry-related. Ask the
question in the windows newsgroup, maybe someone can tell you which .LIB
file you have to make sure you;re linking into your project.

--
gabriel
Jul 22 '05 #2
The linker can't find some functions which is used by your files. Maybe
there's some external libraries used? In that case you might want to look at
the project settings and then the Link Tab. Select the category Input and
then there's a setting "Additional library path". If the project uses
external libraries, enter the path to them there and try compiling it again.
:)

/Carl

"We need more power captain" <kn**********@h otmail.com> wrote in message
news:8f******** *************** ***@posting.goo gle.com...
Hi,

I know less than a noob, I've been asked to do some compiles in VC++ 6
without knowing too much at all. (I'm a COBOL program normally so
this is all too much for me)

I open VC++6, open the workspace and then:

Build>Batch Build

I then select both my projects, click Build and get the following
errors:
-------------------Configuration: SS32X - Win32
Release--------------------
Linking...
Creating library Release/GH32X.lib and object Release/GH32X.exp
COUIFUNC.obj : error LNK2001: unresolved external symbol "long __cdecl
ReadRegistry(ch ar *)" (?ReadRegistry@ @YAJPAD@Z)
COUIFUNC.obj : error LNK2001: unresolved external symbol "int __cdecl
WriteRegistry(l ong,long)" (?WriteRegistry @@YAHJJ@Z)
Release/GH32X.exe : fatal error LNK1120: 2 unresolved externals
Error executing link.exe.

SS32X.exe - 3 error(s), 0 warning(s)
--------------------Configuration: SS32X - Win32
Debug--------------------
Linking...
Creating library Debug/GH32X.lib and object Debug/GH32X.exp
COUIFUNC.obj : error LNK2001: unresolved external symbol "long __cdecl
ReadRegistry(ch ar *)" (?ReadRegistry@ @YAJPAD@Z)
COUIFUNC.obj : error LNK2001: unresolved external symbol "int __cdecl
WriteRegistry(l ong,long)" (?WriteRegistry @@YAHJJ@Z)
Debug/GH32X.exe : fatal error LNK1120: 2 unresolved externals
Error executing link.exe.

GH32X.exe - 3 error(s), 0 warning(s)

Thanks a lot if anyone can tell me firstly what all this really means,
secondly how to resolve it, I'd appreciate details of what to type
where, I might not understand the instructions otherwise ;))))

Cheers

Yaz

Jul 22 '05 #3
checkout what are the *.lib files required for WriteRegistry and other
functions for which u get the error. U can get this infor from MSDN.
Then try compiling it.

Muthu
Home: http://www.codersource.net

kn**********@ho tmail.com (We need more power captain) wrote in message news:<8f******* *************** ****@posting.go ogle.com>...
Hi,

I know less than a noob, I've been asked to do some compiles in VC++ 6
without knowing too much at all. (I'm a COBOL program normally so
this is all too much for me)

I open VC++6, open the workspace and then:

Build>Batch Build

I then select both my projects, click Build and get the following
errors:
-------------------Configuration: SS32X - Win32
Release--------------------
Linking...
Creating library Release/GH32X.lib and object Release/GH32X.exp
COUIFUNC.obj : error LNK2001: unresolved external symbol "long __cdecl
ReadRegistry(ch ar *)" (?ReadRegistry@ @YAJPAD@Z)
COUIFUNC.obj : error LNK2001: unresolved external symbol "int __cdecl
WriteRegistry(l ong,long)" (?WriteRegistry @@YAHJJ@Z)
Release/GH32X.exe : fatal error LNK1120: 2 unresolved externals
Error executing link.exe.

SS32X.exe - 3 error(s), 0 warning(s)
--------------------Configuration: SS32X - Win32
Debug--------------------
Linking...
Creating library Debug/GH32X.lib and object Debug/GH32X.exp
COUIFUNC.obj : error LNK2001: unresolved external symbol "long __cdecl
ReadRegistry(ch ar *)" (?ReadRegistry@ @YAJPAD@Z)
COUIFUNC.obj : error LNK2001: unresolved external symbol "int __cdecl
WriteRegistry(l ong,long)" (?WriteRegistry @@YAHJJ@Z)
Debug/GH32X.exe : fatal error LNK1120: 2 unresolved externals
Error executing link.exe.

GH32X.exe - 3 error(s), 0 warning(s)

Thanks a lot if anyone can tell me firstly what all this really means,
secondly how to resolve it, I'd appreciate details of what to type
where, I might not understand the instructions otherwise ;))))

Cheers

Yaz

Jul 22 '05 #4

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

Similar topics

1
6390
by: yanwan | last post by:
I met this problem in executing a c++ project in visual studio. Does anyone have suggestions to resolve "error lnk 2001"? --------------------Configuration: reconstruction - Win32 Debug-------------------- Linking... icarus_camera.obj : error LNK2001: unresolved external symbol _dgels_ icarus_leastsquares.obj : error LNK2001: unresolved...
2
6906
by: Helen | last post by:
Hi I am trying to compile a package of avi to mpeg1 C source codes But I got the link error I searched actually my VFW.h and Vfw32.lib are all in the directory what should I do thanks a lot Linking... Avi2mpg1.obj : error LNK2001: unresolved external symbol _AVIFileExit@0 Avi2mpg1.obj : error LNK2001: unresolved external symbol...
2
5819
by: Mary | last post by:
Hello, I am having a problem with the cl compiler. I have written a C class (RegConnect.c) which uses Win32 API functions such as RegOpenKey, RegCloseKey etc. Initially when I was trying to create a dll, using the cl compiler I was getting many unresolved external errors, Example 1 below (8 in total, 7 to do with the registry function...
4
6395
by: Sanjay Kumar | last post by:
Folks ! I am working with VC++ after a long time and having problem linking latest xerces 2.7 in VC++ 2005 Express Edition. I have done following: 1. downloaded and unpacked the the library: http://www.apache.org/dist/xml/xerces-c/binaries/xerces-c_2_7_0-windows_2000-msvc_60.zip
1
3273
by: developer | last post by:
Hi All I have made a .NET project. the files included are borland c++ files that i am migrate to VC++ .NET I am using Microsoft Visual C++ .NET 2003. the compilation goes through properly, but throws a load of linker errors
2
2740
by: dasilva109 | last post by:
Hi guys I am new to C++ and need urgent help with this part of my code for a uni coursework I have to submit by Thursday //ClientData.h #ifndef CLIENTDATA_H #define CLIENTDATA_H #include <string>
5
2843
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...
6
121864
by: sadegh | last post by:
Hi I have a problem with my program in VC++6 When I compile it, the following errors are listed. I spend a lot of time on the groups.google.com to find its reason, but none of comments could not help me. Does any body know what is the problem?. Thanks. OtherFunctions.obj : error LNK2001: unresolved external symbol "int
1
2370
by: mahricky | last post by:
i have the following error msg when i buid one of my cpp projects in visual studio 6. pls help me, it's very urgent. extures.obj : error LNK2001: unresolved external symbol "public: __thiscall Scene::Scene(void)" (??0Scene@@QAE@XZ) textures.obj : error LNK2001: unresolved external symbol "public: __thiscall Robot::Robot(void)"...
0
7478
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...
0
7410
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7668
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7923
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...
0
7773
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
5984
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
3466
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...
1
1025
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
722
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.