GIDForums  

Go Back   GIDForums > Computer Programming Forums > FLTK Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 15-Aug-2005, 14:46
mauriciorossi mauriciorossi is offline
New Member
 
Join Date: Aug 2005
Posts: 19
mauriciorossi is on a distinguished road

Winsock error when compiling FLTK 2.0 Projects


I keep getting errors when im compiling fltk programs concerning winsock.h
I dont believe ive ever tampered with that file, because i never use winsock.
Here are the errors:

Code:
winsock.h(745) : error C2065: 'IN' : undeclared identifier winsock.h(745) : error C2146: syntax error : missing ')' before identifier 'SOCKET' winsock.h(745) : warning C4229: anachronism used : modifiers on data are ignored winsock.h(747) : error C2059: syntax error : ')' winsock.h(750) : error C2146: syntax error : missing ')' before identifier 'SOCKET' winsock.h(750) : warning C4229: anachronism used : modifiers on data are ignored winsock.h(752) : error C2059: syntax error : ')' winsock.h(754) : error C2146: syntax error : missing ')' before identifier 'SOCKET' winsock.h(754) : warning C4229: anachronism used : modifiers on data are ignored winsock.h(754) : error C2059: syntax error : ')' winsock.h(757) : error C2146: syntax error : missing ')' before identifier 'SOCKET' winsock.h(757) : warning C4229: anachronism used : modifiers on data are ignored winsock.h(759) : error C2059: syntax error : ')' winsock.h(762) : error C2146: syntax error : missing ')' before identifier 'SOCKET' winsock.h(762) : warning C4229: anachronism used : modifiers on data are ignored winsock.h(764) : error C2059: syntax error : ')' winsock.h(767) : error C2146: syntax error : missing ')' before identifier 'SOCKET' winsock.h(767) : warning C4229: anachronism used : modifiers on data are ignored winsock.h(769) : error C2059: syntax error : ')' winsock.h(772) : error C2146: syntax error : missing ')' before identifier 'SOCKET' winsock.h(772) : warning C4229: anachronism used : modifiers on data are ignored winsock.h(774) : error C2059: syntax error : ')' winsock.h(777) : error C2146: syntax error : missing ')' before identifier 'SOCKET' winsock.h(777) : warning C4229: anachronism used : modifiers on data are ignored winsock.h(781) : error C2059: syntax error : ')' winsock.h(783) : error C2146: syntax error : missing ')' before identifier 'u_long' winsock.h(783) : warning C4229: anachronism used : modifiers on data are ignored winsock.h(783) : error C2059: syntax error : ')' winsock.h(785) : error C2146: syntax error : missing ')' before identifier 'u_short' winsock.h(785) : warning C4229: anachronism used : modifiers on data are ignored winsock.h(785) : error C2059: syntax error : ')' winsock.h(787) : error C2143: syntax error : missing ')' before 'const' winsock.h(787) : warning C4229: anachronism used : modifiers on data are ignored winsock.h(787) : error C2059: syntax error : ')' winsock.h(789) : error C2061: syntax error : identifier 'IN' winsock.h(792) : error C2146: syntax error : missing ')' before identifier 'SOCKET' winsock.h(792) : warning C4229: anachronism used : modifiers on data are ignored winsock.h(793) : error C2059: syntax error : ')' winsock.h(795) : error C2146: syntax error : missing ')' before identifier 'u_long' winsock.h(795) : warning C4229: anachronism used : modifiers on data are ignored winsock.h(795) : error C2059: syntax error : ')' winsock.h(797) : error C2146: syntax error : missing ')' before identifier 'u_short' winsock.h(797) : warning C4229: anachronism used : modifiers on data are ignored winsock.h(797) : error C2059: syntax error : ')' winsock.h(800) : error C2146: syntax error : missing ')' before identifier 'SOCKET' \winsock.h(800) : warning C4229: anachronism used : modifiers on data are ignored winsock.h(803) : error C2059: syntax error : ')' winsock.h(806) : error C2146: syntax error : missing ')' before identifier 'SOCKET' winsock.h(806) : warning C4229: anachronism used : modifiers on data are ignored winsock.h(811) : error C2059: syntax error : ')' winsock.h(814) : error C2144: syntax error : missing ')' before type 'int' winsock.h(814) : error C2448: '<Unknown>' : function-style initializer appears to be a function definition winsock.h(814) : fatal error C1004: unexpected end of file found

I have attached the header
Attached Files
File Type: txt WINSOCK.txt (32.8 KB, 125 views)
Last edited by LuciWiz : 16-Aug-2005 at 01:25. Reason: Formatted post
  #2  
Old 15-Aug-2005, 17:21
mauriciorossi mauriciorossi is offline
New Member
 
Join Date: Aug 2005
Posts: 19
mauriciorossi is on a distinguished road

Can anybody


Can anybody please tell me what the problem is here?
  #3  
Old 16-Aug-2005, 07:36
cohadar cohadar is offline
New Member
 
Join Date: Jul 2005
Posts: 10
cohadar is on a distinguished road

Hm


My best guess is that you are using wrong header files.
Eg. you are compiling with mingw and using header files for .NET



What compiler are you using?
  #4  
Old 16-Aug-2005, 11:18
mauriciorossi mauriciorossi is offline
New Member
 
Join Date: Aug 2005
Posts: 19
mauriciorossi is on a distinguished road
Im using Msvc 6.0

Anybody out there with Microsoft Visual C++ 6, can you send me winsock.h?
 
 

Recent GIDBlogOnce again, no time for hobbies by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

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

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
[Tutorial] GUI programming with FLTK dsmith FLTK Forum 10 03-Oct-2005 16:41
Welcome to the FLTK Forums dsmith FLTK Forum 0 08-Sep-2004 07:58

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 18:49.


vBulletin, Copyright © 2000 - 2009, Jelsoft Enterprises Ltd.