About Store Forum Documentation Contact



Post Reply 
Importing <socket.h>
Author Message
janerpegiusz Offline
Member

Post: #1
Importing <socket.h>
Hello.
I can't find out why I'm unable to import <socket.h>. I'm linking wsock32.lib, there is no such problem when I insert #import <socket.h> anywhere but I can't do that inside Esenthel project. Is there some kind of conflict between winsock and Esenthel's libraries?

Code:
Error    1    error C2143: syntax error : missing ')' before 'this'    c:\program files (x86)\windows kits\8.0\include\um\winnt.h    1118    1    Tutorials VS 2012
Error    2    error C2143: syntax error : missing ',' before 'this'    c:\program files (x86)\windows kits\8.0\include\um\winnt.h    1118    1    Tutorials VS 2012
Error    3    error C2947: expecting '>' to terminate template-parameter-list, found '>'    c:\program files (x86)\windows kits\8.0\include\um\winnt.h    1118    1    Tutorials VS 2012
Error    4    error C2988: unrecognizable template declaration/definition    c:\program files (x86)\windows kits\8.0\include\um\winnt.h    1119    1    Tutorials VS 2012
Error    5    error C2059: syntax error : '('    c:\program files (x86)\windows kits\8.0\include\um\winnt.h    1119    1    Tutorials VS 2012
Error    6    error C2059: syntax error : '&'    c:\program files (x86)\windows kits\8.0\include\um\winnt.h    1119    1    Tutorials VS 2012
Error    7    error C2091: function returns function    c:\program files (x86)\windows kits\8.0\include\um\winnt.h    1119    1    Tutorials VS 2012
Error    8    error C2090: function returns array    c:\program files (x86)\windows kits\8.0\include\um\winnt.h    1119    1    Tutorials VS 2012
Error    9    error C2059: syntax error : ')'    c:\program files (x86)\windows kits\8.0\include\um\winnt.h    1119    1    Tutorials VS 2012
Error    10    error C2143: syntax error : missing ';' before '*'    c:\program files (x86)\windows kits\8.0\include\um\winnt.h    1254    1    Tutorials VS 2012
Error    11    error C2143: syntax error : missing ';' before '*'    c:\program files (x86)\windows kits\8.0\include\um\winnt.h    2145    1    Tutorials VS 2012
Error    12    error C2143: syntax error : missing ';' before 'identifier'    c:\program files (x86)\windows kits\8.0\include\um\winnt.h    2155    1    Tutorials VS 2012
Warning    13    warning C4091: 'typedef ' : ignored on left of '_M128A' when no variable is declared    c:\program files (x86)\windows kits\8.0\include\um\winnt.h    2155    1    Tutorials VS 2012
Error    14    error C1075: end of file found before the left brace '{' at 'c:\program files (x86)\windows kits\8.0\include\um\winnt.h(28)' was matched    c:\program files (x86)\windows kits\8.0\include\um\winnt.h    2155    1    Tutorials VS 2012
    15    IntelliSense: expected a ';'    c:\Program Files (x86)\Windows Kits\8.0\Include\um\combaseapi.h    248    1    Tutorials VS 2012
01-29-2013 04:00 PM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #2
RE: Importing <socket.h>
Please check this

http://www.esenthel.com/wiki/index.php?t...em_Headers

alternatively you can use
#undef T
#undef C
#include socket...

But you don't need to do that because you just can use EE::Socket which is exactly the same, but wrapped conveniently in EE style functions/classes
01-29-2013 04:03 PM
Find all posts by this user Quote this message in a reply
janerpegiusz Offline
Member

Post: #3
RE: Importing <socket.h>
It worked, thank you very much!
01-29-2013 04:08 PM
Find all posts by this user Quote this message in a reply
Post Reply