Your browser does not seem to support CSS. If images appear below, please disregard them.
It appears that you're running an Ad-Blocker. This site is monetized by Advertising and by User Donations; we ask that if you find this site helpful that you whitelist us in your Ad-Blocker, or make a Donation to help aid in operating costs.
Previous Thread
Next Thread
Print Thread
Rate This Thread
#17272 - 08/18/03 12:00 AM Linking error?  
Joined: Jun 2003
Posts: 14
visage Offline
Junior Member
visage  Offline
Junior Member

Joined: Jun 2003
Posts: 14
When I compile my program, it compiles without an error. When I try to build it into an EXE, this is the error I keep getting. Any ideas on what this may be from?

Code:
--------------------Configuration: main - Win32 Release--------------------
Linking...
main.obj : error LNK2001: unresolved external symbol [email protected]
main.obj : error LNK2001: unresolved external symbol [email protected]
main.obj : error LNK2001: unresolved external symbol [email protected]
main.obj : error LNK2001: unresolved external symbol [email protected]
main.obj : error LNK2001: unresolved external symbol [email protected]
main.obj : error LNK2001: unresolved external symbol [email protected]
main.obj : error LNK2001: unresolved external symbol [email protected]
main.obj : error LNK2001: unresolved external symbol [email protected]
main.obj : error LNK2001: unresolved external symbol [email protected]
main.obj : error LNK2001: unresolved external symbol [email protected]
Release/main.exe : fatal error LNK1120: 10 unresolved externals
Error executing link.exe.

main.exe - 11 error(s), 0 warning(s)

Sponsored Links
#17273 - 08/18/03 05:59 AM Re: Linking error?  
Joined: Mar 2002
Posts: 1,273
SilentRage Offline
DollarDNS Owner
SilentRage  Offline
DollarDNS Owner

Joined: Mar 2002
Posts: 1,273
OH, USA
include wsock32.lib in your link, that is, if it's a windows program you're compiling.


Domain Registration, Hosting, Management
http://www.dollardns.net
#17274 - 11/03/03 06:55 PM Re: Linking error?  
Joined: Mar 2002
Posts: 93
zenon Offline
Junior Member
zenon  Offline
Junior Member

Joined: Mar 2002
Posts: 93
Sweden
yeah... to help him out, explaining the basics..


When a compiler generates such errors it's (very often) because it doesn't recognise the used commands/variables/ops/function calls
.
In your case, the unrecognized are:
[email protected]
[email protected]
and so on... (you get it)..

those function calls are surely, like SilentRage said, defined in the wsock32.lib .....
Yep...
that's why.

Hope you got some light into it,,,


- "It's not my code that's useless
it's you loosers being unable to
apprecitate it because of your
lack of skills!"
/zenon - C++ master Apprentice
#17275 - 12/22/03 05:47 AM Re: Linking error?  
Joined: Dec 2003
Posts: 38
acid45 Offline
Junior Member
acid45  Offline
Junior Member

Joined: Dec 2003
Posts: 38
canada
Using visual studio I usually get similar errors when I create a project and build the main .cpp file and forget to add all of the header file implementation files, you know the actual code to a non-template header. Just in case you don't need IMP files with every non-template header, I didn't know. I'm fairly new to C++.


Member Spotlight
Gremelin
Gremelin
Portland, OR; USA
Posts: 7,195
Joined: February 2002
Show All Member Profiles 
Forum Statistics
Forums45
Topics47,460
Posts82,630
Average Daily Posts8
Members2,159
Most Online1,567
Apr 25th, 2010
Latest Postings
Top Posters(All Time)
UGN Security 40,624
Gremelin 7,195
§intå× 3,255
SilentRage 1,273
Ice 1,146
pergesu 1,136
Infinite 1,041
jonconley 955
Girlie 908
unreal 860
Top Liked Users (All Time)
§intå× Likes: 1
Cold Sunn Likes: 1
Crime Likes: 1
Cyrez Likes: 1
Ghost Likes: 1
Gremelin Likes: 4
Ice Likes: 1
unreal Likes: 1
Top Liked Users (30 Days)
No Data Found
Powered by UBB.threads™ PHP Forum Software 7.6.0
(Snapshot build 20160902)