NetXMS Support Forum

Development => Windows => Topic started by: worud on January 06, 2010, 09:20:35 AM

Title: error C2065: 'SOCKET' : undeclared identifier
Post by: worud on January 06, 2010, 09:20:35 AM
Hi,

I am just in the stage of beginning compile 0.2.31 with VC++ 6 EE.

I tried to compile libnetxms but I come across a message like to title of this topic.

Could you let me know what is happenning?

--------------------Configuration: libnetxms - Win32 Debug--------------------
Compiling...
agent.cpp
c:\program files\microsoft visual studio\vc98\include\mswsock.h(69) : error C2065: 'SOCKET' : undeclared identifier
c:\program files\microsoft visual studio\vc98\include\mswsock.h(69) : error C2146: syntax error : missing ')' before identifier 's'


Regards,

Joseph
Title: Re: error C2065: 'SOCKET' : undeclared identifier
Post by: Victor Kirhenshtein on January 07, 2010, 10:28:22 AM
Probably something is wrong with headers you are using. Attached is my startup file for VC6, may be it will help. I use Platform SDK for Windows Server 2003, because many headers and libraries in VC6 distribution is outdated or missing.

Best regards,
Victor

Title: Re: error C2065: 'SOCKET' : undeclared identifier
Post by: worud on January 07, 2010, 11:05:09 AM
Hi Victor,

Thank you for your prompt support. I'll try it and let you know the result.

Do I need all packages included in your cmd file?

I think I have some of them only.

Probably, I need to setup environment again.

Regards,

Joseph
Title: Re: error C2065: 'SOCKET' : undeclared identifier
Post by: Victor Kirhenshtein on January 07, 2010, 12:55:37 PM
Hi!

You need Platform SDK, OpenSSL, and ZLib.  Others required only for some components:

DDK - for UPS subagent;
libgd - for nxhttpd;
DB library - for MSSQL database driver;
Scintilla - for management console;
Microsoft Speech SDK - for management console;
MySQL client - for MySQL database driver;
PostgreSQL client - for PostgreSQL database driver;
Oracle client - for Oracle database driver;

Packages not listed here are not needed for NetXMS build.

Best regards,
Victor
Title: Re: error C2065: 'SOCKET' : undeclared identifier
Post by: worud on January 08, 2010, 01:56:28 AM
Hi Victor,

Great hear from you again.

Thank you very much.

Best Regards,

Joseph Hahn