473,395 Members | 1,680 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,395 software developers and data experts.

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(char *)" (?ReadRegistry@@YAJPAD@Z)
COUIFUNC.obj : error LNK2001: unresolved external symbol "int __cdecl
WriteRegistry(long,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(char *)" (?ReadRegistry@@YAJPAD@Z)
COUIFUNC.obj : error LNK2001: unresolved external symbol "int __cdecl
WriteRegistry(long,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 6047
First, the right newsgroup for this questions is comp.os.ms-
windows.programmer.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**********@hotmail.com> wrote in message
news:8f**************************@posting.google.c om...
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(char *)" (?ReadRegistry@@YAJPAD@Z)
COUIFUNC.obj : error LNK2001: unresolved external symbol "int __cdecl
WriteRegistry(long,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(char *)" (?ReadRegistry@@YAJPAD@Z)
COUIFUNC.obj : error LNK2001: unresolved external symbol "int __cdecl
WriteRegistry(long,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**********@hotmail.com (We need more power captain) wrote in message news:<8f**************************@posting.google. 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(char *)" (?ReadRegistry@@YAJPAD@Z)
COUIFUNC.obj : error LNK2001: unresolved external symbol "int __cdecl
WriteRegistry(long,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(char *)" (?ReadRegistry@@YAJPAD@Z)
COUIFUNC.obj : error LNK2001: unresolved external symbol "int __cdecl
WriteRegistry(long,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
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...
2
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...
2
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...
4
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...
1
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,...
2
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...
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...
6
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...
1
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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...
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
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...
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
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...

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.