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

Error : LNK2001

105 100+
Hi all,

I am trying to build a C++ program and I am getting linking errors in the lib files which have been generated before and I have to include these lib fils to build my project.

Could anyone help me where I can look for this error?

>filt.lib(b.obj) : error LNK2001: unresolved external symbol _WSAStartup@8

b.obj is the object file of my original source file.

Thanks in advance.
Mar 29 '07 #1
4 1523
horace1
1,510 Expert 1GB
Hi all,

I am trying to build a C++ program and I am getting linking errors in the lib files which have been generated before and I have to include these lib fils to build my project.

Could anyone help me where I can look for this error?

>filt.lib(b.obj) : error LNK2001: unresolved external symbol _WSAStartup@8

b.obj is the object file of my original source file.

Thanks in advance.
have you included the winsock lib file ? sounds like it is missing
Mar 29 '07 #2
mickey22
105 100+
Is the winsock lib file part of Visual Studios.I have seen it in one of its directories.

So, I have just tried to include it in the properties of my project.But it did not work.

Could you please tell if I have included the right lib file?Or are there any other possibilties?Is there any location of finding this winsock lib file?

Thanks.
Mar 30 '07 #3
horace1
1,510 Expert 1GB
Is the winsock lib file part of Visual Studios.I have seen it in one of its directories.

So, I have just tried to include it in the properties of my project.But it did not work.

Could you please tell if I have included the right lib file?Or are there any other possibilties?Is there any location of finding this winsock lib file?

Thanks.
I don't use visual studio but my old Vesual C++ has a file WSOCK32.LIB which I guess is the winsock library. Look for a similar file?
Mar 30 '07 #4
mickey22
105 100+
Actually I tried to solve it by including

#pragma comment(lib, "wsock32.lib")

It solved all the linking probs I have got.

Anyways thanks once again for your help.
Mar 30 '07 #5

Sign in to post your reply or Sign up for a free account.

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...
5
by: bonnielym84 | last post by:
Im new here..didnt noe whether is this the rite way to post my problem..Really need help here..i've been stucked in this error from last wk..My problem is like this..Im using VC++ 6.0 to compile my C...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
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,...
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
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.