![]() |
|
#1
|
|||
|
|||
Resolving "error LNK2001"I am working on VC++ and when I compile my socket programming it's giving no compile errors but when I build I am getting some error like:
Code:
Help me in resolving these error please. |
|||
|
#2
|
|||
|
|||
Re: pl.. help me resolving "error LNK2001"Errors 1-17: Depending on what compiler version you are using, add wsock32.lib to your project or, maybe, ws2_32.lib: http://msdn.microsoft.com/library/de...astartup_2.asp
Errors 18-19: Compile with multi-threaded versions of the run-time libraries. Depending on what compiler version you are using, this may require a "/MT" compiler switch: http://msdn2.microsoft.com/en-us/lib...cb(VS.80).aspx Regards, Dave |
|
#3
|
|||
|
|||
Re: pl.. help me resolving "error LNK2001"Dave (or anyone),
I made the adjustment that was given for errors 1 - 17, and that cleared my compiler error. However, I get the following errors when I run the program: Code:
Can you help? |
|
#4
|
|||
|
|||
Re: pl.. help me resolving "error LNK2001"Quote:
setCourseName(string parameter) setCourseName(void) GradeBook(string parameter) --- the constructor that has a string argument Apparently you have declared them (in a header file, perhaps). And you have used them. Maybe in a main() function or other function that was compiled as part of your project. It just can't find where you have compiled them. Regards, Dave |
|
#5
|
|||
|
|||
Re: pl.. help me resolving "error LNK2001"Quote:
I believe there are two...Gradebook.cpp and StdAfx.cpp. I don't know how they are linked...I don't know enough about C++. I also have two header files...same names except with a .h. Quote:
I don't have the project in front of me right now...how would I find where I compiled them? Thanx for getting back to me so quickly...maybe you will be available tonight and/or tomorrow to answer more questions for me? Thank you! Arlene Last edited by admin : 11-Jul-2007 at 09:24.
Reason: Fixed quotes
|
|
#6
|
|||
|
|||
Re: pl.. help me resolving "error LNK2001"One more thing...what about those "unresolved external symbol" errors?
|
|
#7
|
||||
|
||||
Re: Resolving "error LNK2001"To post #6: Dave answered that in post #4...
It sounds like, based on the error, the GradeBook.cpp file is missing (near the top of the file): CPP / C++ / C Code:
__________________
Use the force...read the source!! WYCIWYG -- what you code is what you get! |
Recent GIDBlog
Problems with the Navy (Officers) by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The