Home > Undefined Reference > Linker Error Undefined Reference To Wsastartup 8

Linker Error Undefined Reference To Wsastartup 8

Contents

Add Option... and Add Library File.... Register now! Board Rules Blog 01-05-2005 #3 wicked View Profile View Forum Posts Registered User Join Date Jan 2005 Posts 11 Thats the thing, I've got no idea how to link to it http://cdbug.org/undefined-reference/linker-error-undefined-reference-to-wsastartup.php

Forum Today's Posts C and C++ FAQ Forum Actions Mark Forums Read Quick Links View Forum Leaders What's New? Oct 30, 2012 at 6:53am UTC tolga gerekci (66) You must link ws2_32.lib library file(winsock2) . cout << "wrong WinSock version!\n"; WSACleanup (); // unload ws2_32.dll return 0; } s = socket (AF_INET, SOCK_STREAM, IPPROTO_TCP); // Create socket if (s == INVALID_SOCKET) { cout << "Error\n"; return Am I allowed to paste it to verify my claim?

Undefined Reference To [email protected]' Code Blocks

I also learned that to solve these linker problems I need to link the libraries to the program and that's my main problem now. Site Changelog Community Forum Software by IP.Board Sign In Use Facebook Use Twitter Need an account? Publishing a mathematical research article on research which is already done?

you do realize that windows xp is obsolete and unsupported ... ? First off, I'd like to say that I tried downloading code::blocks and vc++ as you previously suggested but my OS and its SP isn't supported by vc++ so I resorted to Add Library File... Lws2_32 Try one then there other to see if it works. 0 Back to top Back to C and C++ · Next Unread Topic → Reply to quoted postsClear Codecall →

The commands I input are: cd C:\\c++\\myProgram // go to the dir g++ myProgram.cpp -lws2_32 // compile using -l option to link libws2_32.a And after it I get a.exe file. Undefined Reference To `[email protected]' What examples are there of funny connected waypoint names or airways that tell a story? Where is the tutorial that you are using? http://stackoverflow.com/questions/12339171/undefined-reference-to-wsastartup8-how-to-link-libraries-with-nb wicked 01-05-2005 #8 Fordy View Profile View Forum Posts Visit Homepage &TH of undefined behavior Join Date Aug 2001 Posts 5,792 Originally Posted by wicked Thank you all it's now working

Please take a look if you know how to answer it –dimitris93 Apr 9 at 18:01 add a comment| Your Answer draft saved draft discarded Sign up or log in Undefined Reference To `[email protected]' Yes No Not yet What's that? Now, cygwin/mingw etc. How to know if a meal was cooked with or contains alcohol?

Undefined Reference To `[email protected]'

I didn't try to install Windows SDK, I want to try with Cygwin tools as it has such kind of tools. 2) What is the difference between Windows .lib files and http://www.bleepingcomputer.com/forums/t/218573/winsock/ Username Forum Password I've forgotten my password Remember me This is not recommended for shared computers Privacy Policy Search: Advanced Forum Search Forums Programming Web Development Computers Tutorials Snippets Dev Blogs Undefined Reference To [email protected]' Code Blocks doncwilson_1 16 367 posts since Feb 2013 Community Member Please help me to export the data ,get from web crawler, to csv. Undefined Reference To Getaddrinfo oh 1 more thing they used Ws2_32.lib and Ws2_32.dll.

Here is the code for the portion of the app that creates the workbook, ... More about the author I know it's a question of a misssing pointer but i don't know … bits 13 replies typedef struct { unsigned char Val1; unsigned char Val2; unsigned char Val3; unsigned char Hope all goes well. Get Started with C or C++ C Tutorial C++ Tutorial Get the C++ Book All Tutorials Advanced Search Forum General Programming Boards C Programming undefined reference to `[email protected]' Getting started with Mingw Winsock

Uploading a preprint with wrong proofs Red balls and Rings How to create a company culture that cares about information security? so i guess thats why it wont work, but do you think Dev-Cpp would be able to compile if i had the library and DLL file? I know you are refering to MinGw, but you may need cygwin to get around this, I don't know mingw that well, I know cygwin better. check my blog contact us DaniWeb IT Discussion Community Join DaniWeb Log In Hardware and Software Programming Digital Media Community Center Programming Software Development Not Yet Answered Linker Errors when Compiling C Socket Program

Hide Comments · Unlock · Lock 04 Feb camD357 I love this community ! Undefined Reference To `doformatmessage' Report • #10 kikker June 2, 2011 at 02:16:37 tiensi1991 u r great....u solved my problem... I've tried to link libws2_32.a to my project this way.

Such opinions may not be accurate and they are to be used at your own risk.

libws2_32.a, what's the difference and how to link libws2_32 to NB project? 0 How to link ws2_32 in Clion Related 1Problem statically linking MFC libraries0C++ program gets undefined reference to a it works OK with DEV-C++ 4.9.92 on my Win XP machine. if you get an error like: Linker error] undefined reference to `[emailprotected]' Add this: -lws2_32 to Tools->Compiler Options under the section on compile flags. */ Was This Post Helpful? 1 Back Undefined Reference To [email protected]' Code Blocks Cygwin comes with the precompiled boost libraries, but who knows of which version they are.

No, the #pragma linking comments are an MSVC specific (ugly IMO) extension. Thanks again. 0 Ancient Dragon 5,243 5 Years Ago I don't know how to do it with dev-c++ because I don't use it any more. Today's Topics Dream.In.Code > Programming Help > C and C++ Socket ApplicationHello! news To add: #pragma comment(lib, "ws2_32.lib")Thanks but that didn't work for me.

You need to add the library to the project or linker settings; or the makefile if that's what is uses. In it, you'll get: The week's top questions and answers Important community announcements Questions that need answers see an example newsletter By subscribing, you agree to the privacy policy and terms right click on menu Tools>Compiler options.3. Different precision for masses of moon and earth online How to create a company culture that cares about information security?

Was This Post Helpful? 0 Back to top MultiQuote Quote + Reply #9 horace D.I.C Lover Reputation: 746 Posts: 3,730 Joined: 25-October 06 Re: Socket Application Posted 20 January 2007 Also : one does not simply port C/C++ apps between operating systems, you're free to use OSS compilers and whatnot but with windows that will only lead to trouble - you'd How do you get a dragon head in Minecraft?