Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Feb 24th, 2005, 8:08 AM   #1
hshb0x
Newbie
 
Join Date: Feb 2005
Posts: 1
Rep Power: 0 hshb0x is on a distinguished road
problem with winsock.h

I do #include <winsock.h> and when I compile a bunch of errors appear. what can I do to stop that?
(same thing happens with winsock2.h)
hshb0x is offline   Reply With Quote
Old Feb 24th, 2005, 9:38 AM   #2
Dia_Byte
Programmer
 
Join Date: Nov 2004
Location: Bierut - Lebanon
Posts: 34
Rep Power: 0 Dia_Byte is on a distinguished road
me too
i'm having a link error with "winsock2.h", on my computer that is not plugged to the internet

and i'm using DEV_CPP
__________________
<removed by Administrator>
Dia_Byte is offline   Reply With Quote
Old Feb 24th, 2005, 1:55 PM   #3
kurifu
Expert Programmer
 
kurifu's Avatar
 
Join Date: Jul 2004
Location: Halifax, Nova Scotia (Canada)
Posts: 784
Rep Power: 5 kurifu is on a distinguished road
Send a message via ICQ to kurifu Send a message via MSN to kurifu
Are you linking ws2_32.lib into your library? I suspect this is where you are getting your errors, especially if they are "unresolved external" errors or similar generated during the linking process.
__________________
Clifford Matthew Roche &lt;geek@cliffordroche.com&gt;
Web Hosting: http://www.crd-hosting.com
Consulting: http://www.crdev-consulting.com
kurifu is offline   Reply With Quote
Old Feb 24th, 2005, 6:38 PM   #4
drewlander
Newbie
 
drewlander's Avatar
 
Join Date: Jan 2005
Location: Pittsburgh, PA
Posts: 16
Rep Power: 0 drewlander is on a distinguished road
Send a message via AIM to drewlander
kurifu is right. If you do not include any of the library files for winsock, you will get those errors. I have a folder with all the winsock.h/.lib files, that way to include them it is really easy for me to do.
__________________
On and on....
drewlander is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 10:59 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC