![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: Feb 2005
Posts: 1
Rep Power: 0
![]() |
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) |
|
|
|
|
|
#2 |
|
Programmer
Join Date: Nov 2004
Location: Bierut - Lebanon
Posts: 34
Rep Power: 0
![]() |
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> |
|
|
|
|
|
#3 |
|
Expert Programmer
|
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 <geek@cliffordroche.com> Web Hosting: http://www.crd-hosting.com Consulting: http://www.crdev-consulting.com |
|
|
|
|
|
#4 |
|
Newbie
|
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.... |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|