Click here to Skip to main content
15,913,939 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Displaying HTML/web content within C++ app (no MFC) Pin
Stephen Hewitt11-Apr-06 15:49
Stephen Hewitt11-Apr-06 15:49 
GeneralRe: Displaying HTML/web content within C++ app (no MFC) Pin
chasetoys11-Apr-06 17:07
chasetoys11-Apr-06 17:07 
Questionsocket question Pin
nahitan11-Apr-06 11:02
nahitan11-Apr-06 11:02 
QuestionMemory Leak using Bounds checker Pin
act_x11-Apr-06 10:11
act_x11-Apr-06 10:11 
AnswerRe: Memory Leak using Bounds checker Pin
S. Senthil Kumar11-Apr-06 10:29
S. Senthil Kumar11-Apr-06 10:29 
GeneralRe: Memory Leak using Bounds checker Pin
act_x11-Apr-06 10:49
act_x11-Apr-06 10:49 
AnswerRe: Memory Leak using Bounds checker Pin
Joe Woodbury11-Apr-06 11:40
professionalJoe Woodbury11-Apr-06 11:40 
Question"LNK2001: unresolved external symbol" Error Pin
capricious_00111-Apr-06 9:57
capricious_00111-Apr-06 9:57 
Hi guys,

I was having a bit of trouble compiling a program of mine and was hoping someone kind enough could help me out.

Im desiging a simple program that basically sends an email by using sockets. However it looks like I'm getting linker errors. Here is the compiler generated report.

--------------------Configuration: sendEmailWinsock - Win32 Debug--------------------
Compiling...
sendEmailWinsock.cpp
Linking...
sendEmailWinsock.obj : error LNK2001: unresolved external symbol __imp__recv@16
sendEmailWinsock.obj : error LNK2001: unresolved external symbol __imp__connect@12
sendEmailWinsock.obj : error LNK2001: unresolved external symbol __imp__inet_addr@4
sendEmailWinsock.obj : error LNK2001: unresolved external symbol __imp__gethostbyname@4
sendEmailWinsock.obj : error LNK2001: unresolved external symbol __imp__htons@4
sendEmailWinsock.obj : error LNK2001: unresolved external symbol __imp__socket@12
sendEmailWinsock.obj : error LNK2001: unresolved external symbol __imp__WSAStartup@8
sendEmailWinsock.obj : error LNK2001: unresolved external symbol __imp__send@16
sendEmailWinsock.obj : error LNK2001: unresolved external symbol __imp__WSACleanup@0
sendEmailWinsock.obj : error LNK2001: unresolved external symbol __imp__closesocket@4
Debug/sendEmailWinsock.exe : fatal error LNK1120: 10 unresolved externals
Error executing link.exe.

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


The environment I'm on is:

Windows XP Home
VC++ 6.0

I'm using registry functions within my program as well so I'm confident it is only to do with the winsock functions. I've been looking all over google for a solution but just when I think im close I'm pretty far away.

I'm thinking it's to do with my compiler options but not to sure if thats whats causing the problem. Any help is appreciated!

Robbie
AnswerRe: "LNK2001: unresolved external symbol" Error Pin
Joe Woodbury11-Apr-06 10:08
professionalJoe Woodbury11-Apr-06 10:08 
GeneralRe: "LNK2001: unresolved external symbol" Error Pin
capricious_00111-Apr-06 10:16
capricious_00111-Apr-06 10:16 
QuestionTo Jochen Kalmbach, Reg Stack Walker Pin
psbasha11-Apr-06 7:54
psbasha11-Apr-06 7:54 
QuestionRe: To Jochen Kalmbach, Reg Stack Walker Pin
David Crow11-Apr-06 8:18
David Crow11-Apr-06 8:18 
AnswerRe: To Jochen Kalmbach, Reg Stack Walker Pin
psbasha11-Apr-06 8:45
psbasha11-Apr-06 8:45 
QuestionRe: To Jochen Kalmbach, Reg Stack Walker Pin
David Crow11-Apr-06 8:48
David Crow11-Apr-06 8:48 
AnswerRe: To Jochen Kalmbach, Reg Stack Walker Pin
psbasha11-Apr-06 9:13
psbasha11-Apr-06 9:13 
AnswerRe: To Jochen Kalmbach, Reg Stack Walker Pin
ThatsAlok11-Apr-06 8:48
ThatsAlok11-Apr-06 8:48 
GeneralRe: To Jochen Kalmbach, Reg Stack Walker Pin
psbasha11-Apr-06 9:15
psbasha11-Apr-06 9:15 
GeneralRe: To Jochen Kalmbach, Reg Stack Walker Pin
David Crow11-Apr-06 10:31
David Crow11-Apr-06 10:31 
GeneralRe: To Jochen Kalmbach, Reg Stack Walker Pin
psbasha12-Apr-06 5:19
psbasha12-Apr-06 5:19 
QuestionTreeCtrl - begin lable edit notify Pin
CodeGoose11-Apr-06 6:29
CodeGoose11-Apr-06 6:29 
AnswerRe: TreeCtrl - begin lable edit notify Pin
CodeGoose11-Apr-06 6:44
CodeGoose11-Apr-06 6:44 
GeneralRe: TreeCtrl - begin lable edit notify Pin
CodeGoose11-Apr-06 6:54
CodeGoose11-Apr-06 6:54 
GeneralRe: TreeCtrl - begin lable edit notify Pin
CodeGoose11-Apr-06 7:15
CodeGoose11-Apr-06 7:15 
AnswerRe: TreeCtrl - begin lable edit notify Pin
Michael Dunn11-Apr-06 7:23
sitebuilderMichael Dunn11-Apr-06 7:23 
GeneralRe: TreeCtrl - begin lable edit notify Pin
CodeGoose11-Apr-06 7:55
CodeGoose11-Apr-06 7:55 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.