Sign in to follow this  

Missing wsock32.lib, winsock.h?

This topic is 4858 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi, using Visual C++ Express Beta edition, trying to access wsock32.lib and winsock.h/winsock2.h, but isn't to be found? typed: #pragma comment(lib, "wsock32.lib") #include <winsock2.h> ------ Build started: Project: Reaper, Configuration: Debug Win32 ------ Compiling... googleapi.c c:\Documents and Settings\Dan\Desktop\googleapi\gsoapgoogleapi\stdsoap2.h(109) : fatal error C1083: Cannot open include file: 'winsock2.h': No such file or directory soapC.c c:\Documents and Settings\Dan\Desktop\googleapi\gsoapgoogleapi\stdsoap2.h(109) : fatal error C1083: Cannot open include file: 'winsock2.h': No such file or directory soapClient.c c:\Documents and Settings\Dan\Desktop\googleapi\gsoapgoogleapi\stdsoap2.h(109) : fatal error C1083: Cannot open include file: 'winsock2.h': No such file or directory stdsoap2.c c:\Documents and Settings\Dan\Desktop\googleapi\gsoapgoogleapi\stdsoap2.h(109) : fatal error C1083: Cannot open include file: 'winsock2.h': No such file or directory Generating Code... Build log was saved at "file://c:\Documents and Settings\Dan\Desktop\googleapi\gsoapgoogleapi\Debug\BuildLog.htm" Reaper - 4 error(s), 0 warning(s) ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

Share this post


Link to post
Share on other sites
i don't think you can just download and run the express beta edition, if i remember right you also have to download "msdn sdk 2.0" or something along those lines.

Share this post


Link to post
Share on other sites
You need to download and install the platform sdk. After installing it, you will need to add the paths to the headers and lib directories to Visual Studio. The express edition only comes with an implementation of the standard library.

Share this post


Link to post
Share on other sites
Hmm...

I copied all the files in "lib" and "include" and put them in with all the other basic ones...

THANKS FOR YOUR HELP EVERYONE! :D

However, another problem...

Generating Code...
Linking...
LIBCMTD.lib(wincrt0.obj) : error LNK2019: unresolved external symbol _WinMain@16 referenced in function _WinMainCRTStartup
Debug/Reaper.exe : fatal error LNK1120: 1 unresolved externals
Build log was saved at "file://c:\Documents and Settings\Dan\Desktop\googleapi\gsoapgoogleapi\Debug\BuildLog.htm"
Reaper - 2 error(s), 130 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========


Now what? :(

Share this post


Link to post
Share on other sites
You try to compile your project to a windowed application but don't have a WinMain function declared in your code. Either add a WinMain (check for exact signature of the function), or toggle your project to compile as a Console only program, so you can use a standard "void main()". (Check your project settings)

Share this post


Link to post
Share on other sites
No idea ;)

on VS6.0 you decide what project you want to have when creating a new project. Probably you just have to create a new project and add all source files to it again.

Share this post


Link to post
Share on other sites

This topic is 4858 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this