Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Flatly)
  • No Skin
Collapse
Brand Logo

NetXMS Forum

  1. Home
  2. Development
  3. error C2065: 'SOCKET' : undeclared identifier

error C2065: 'SOCKET' : undeclared identifier

Scheduled Pinned Locked Moved Development
windows
5 Posts 2 Posters 58.7k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • W
    W
    worud
    wrote on last edited by
    #1

    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

    1 Reply Last reply
    0
    • V
      V
      Victor Kirhenshtein
      wrote on last edited by
      #2

      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


      vc-i386.cmd

      1 Reply Last reply
      0
      • W
        W
        worud
        wrote on last edited by
        #3

        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

        1 Reply Last reply
        0
        • V
          V
          Victor Kirhenshtein
          wrote on last edited by
          #4

          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

          1 Reply Last reply
          0
          • W
            W
            worud
            wrote on last edited by
            #5

            Hi Victor,

            Great hear from you again.

            Thank you very much.

            Best Regards,

            Joseph Hahn

            1 Reply Last reply
            0

            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

            With your input, this post could be even better 💗

            Register Login
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            Powered by NodeBB Contributors
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups