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. compile nxlexer files

compile nxlexer files

Scheduled Pinned Locked Moved Development
windows
10 Posts 2 Posters 67.0k 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. Victor.
    It a long way to go. But almost come to the destination. I have four modules to compile to complete all. 🙂
    When I try to compile nxlexer files, it shows following errors.
    Can you guess what's problem?

    Linking...
       Creating library Release/libnetxms.lib and object Release/libnetxms.exp
    Copy files
            1 file(s) copied.
            1 file(s) copied.
    --------------------Configuration: nxlexer - Win32 Release--------------------
    Compiling...
    config.cpp
    nxlexer.cpp
    C:\Source\netxms-0.2.31\src\console\nxlexer\nxlexer.cpp(105) : error C2065: 'PropSet' : undeclared identifier
    C:\Source\netxms-0.2.31\src\console\nxlexer\nxlexer.cpp(105) : error C2146: syntax error : missing ';' before identifier 'ps'
    C:\Source\netxms-0.2.31\src\console\nxlexer\nxlexer.cpp(105) : error C2065: 'ps' : undeclared identifier
    C:\Source\netxms-0.2.31\src\console\nxlexer\nxlexer.cpp(106) : error C2228: left of '.SetMultiple' must have class/struct/union type
    nxsl.cpp
    poll.cpp
    Error executing cl.exe.

    nxlexer.dll - 4 error(s), 0 warning(s)

    Regards,

    Joseph.

    ps. What version of DDK do you using to compile 'ups' files? I downloaded latest 'wdk' but the result of compile is not successful. My version is WinDDK 7600.16385.0.

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

      Hi
      The 'ups' and 'ddk' problem was solved. I downloaded KMDF ( http://download.microsoft.com/download/3/b/5/3b519887-c4af-4ab3-9578-cec48cc84d94/WDFv10.iso ) and installed. Now it was beautifully compiled.

      Regards,

      Joseph

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

        Hi All,
        Any experiences or clues for 'PropSet' related compile errors?
        I'm still tracking what caused the problems but still not found reasons.

        Thanks in advance.

        Regards,

        Joseph

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

          Hi!

          What version of Scintilla library you are using? Class PropSet defined in PropSet.h from Scintilla library. I use version 1.67, which probably outdated - may be this is the problem.

          Best regards,
          Victor

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

            Hi Victor,

            I'm using scintilla version 2.01.

            I'll try as you guided and let you know the result.

            Regards,

            Joseph

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

              Hi Victor,
              The compile was successful with Scintilla 1.67. But I have link errors like follows.
              I tried to check whether scilexer.lib is correctly assigned or not. It is correctly assigned at the link option like "kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib ws2_32.lib libnetxms.lib libeay32.lib scilexer.lib"

              I can remember other guy in this forum asked a quetion same with me. Do you have any clues?

              Regards,

              Joseph

              --------------------Configuration: nxlexer - Win32 Release--------------------
              Compiling...
              config.cpp
              nxlexer.cpp
              nxsl.cpp
              poll.cpp
              Linking...
                Creating library Release/nxlexer.lib and object Release/nxlexer.exp
              nxlexer.obj : error LNK2001: unresolved external symbol "public: virtual int __thiscall WindowAccessor::IndentAmount(int,int *,bool (__cdecl*)(class Accessor &,int,int))" (?IndentAmount@WindowAccessor@@UAEHHPAHP6A_NAAVAccessor@@HH@Z@Z)
              nxlexer.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall WindowAccessor::SetLevel(int,int)" (?SetLevel@WindowAccessor@@UAEXHH@Z)
              nxlexer.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall WindowAccessor::ColourTo(unsigned int,int)" (?ColourTo@WindowAccessor@@UAEXIH@Z)
              nxlexer.obj : error LNK2001: unresolved external symbol "public: virtual int __thiscall WindowAccessor::SetLineState(int,int)" (?SetLineState@WindowAccessor@@UAEHHH@Z)
              nxlexer.obj : error LNK2001: unresolved external symbol "public: virtual int __thiscall WindowAccessor::GetLineState(int)" (?GetLineState@WindowAccessor@@UAEHH@Z)
              nxlexer.obj : error LNK2001: unresolved external symbol "public: virtual int __thiscall WindowAccessor::Length(void)" (?Length@WindowAccessor@@UAEHXZ)
              nxlexer.obj : error LNK2001: unresolved external symbol "public: virtual int __thiscall WindowAccessor::LevelAt(int)" (?LevelAt@WindowAccessor@@UAEHH@Z)
              nxlexer.obj : error LNK2001: unresolved external symbol "public: virtual int __thiscall WindowAccessor::LineStart(int)" (?LineStart@WindowAccessor@@UAEHH@Z)
              nxlexer.obj : error LNK2001: unresolved external symbol "public: virtual int __thiscall WindowAccessor::GetLine(int)" (?GetLine@WindowAccessor@@UAEHH@Z)
              nxlexer.obj : error LNK2001: unresolved external symbol "public: virtual char __thiscall WindowAccessor::StyleAt(int)" (?StyleAt@WindowAccessor@@UAEDH@Z)
              nxlexer.obj : error LNK2001: unresolved external symbol "public: virtual bool __thiscall WindowAccessor::Match(int,char const *)" (?Match@WindowAccessor@@UAE_NHPBD@Z)
              nxlexer.obj : error LNK2001: unresolved external symbol "protected: virtual void __thiscall WindowAccessor::Fill(int)" (?Fill@WindowAccessor@@MAEXH@Z)
              nxlexer.obj : error LNK2001: unresolved external symbol "protected: virtual bool __thiscall WindowAccessor::InternalIsLeadByte(char)" (?InternalIsLeadByte@WindowAccessor@@MAE_ND@Z)
              nxlexer.obj : error LNK2001: unresolved external symbol "public: __thiscall PropSet::~PropSet(void)" (??1PropSet@@QAE@XZ)
              nxlexer.obj : error LNK2001: unresolved external symbol "public: virtual __thiscall WindowAccessor::~WindowAccessor(void)" (??1WindowAccessor@@UAE@XZ)
              nxlexer.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall WindowAccessor::Flush(void)" (?Flush@WindowAccessor@@UAEXXZ)
              nxlexer.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall WindowAccessor::StartSegment(unsigned int)" (?StartSegment@WindowAccessor@@UAEXI@Z)
              nxlexer.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall WindowAccessor::StartAt(unsigned int,char)" (?StartAt@WindowAccessor@@UAEXID@Z)
              nxlexer.obj : error LNK2001: unresolved external symbol "public: void __thiscall PropSet::SetMultiple(char const *)" (?SetMultiple@PropSet@@QAEXPBD@Z)
              nxlexer.obj : error LNK2001: unresolved external symbol "public: __thiscall PropSet::PropSet(void)" (??0PropSet@@QAE@XZ)
              nxlexer.obj : error LNK2001: unresolved external symbol "public: int __thiscall PropSet::GetInt(char const *,int)" (?GetInt@PropSet@@QAEHPBDH@Z)
              nxlexer.obj : error LNK2001: unresolved external symbol "public: char * __thiscall PropSet::ToString(void)" (?ToString@PropSet@@QAEPADXZ)
              Release/nxlexer.dll : fatal error LNK1120: 22 unresolved externals
              Error executing link.exe.
              Creating browse info file...

              nxlexer.dll - 23 error(s), 0 warning(s)

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

                I check my setup - i have two different scilexer.lib for some reasons. One of them contains these functions (and looks like static library), other are not (and looks like import library for scilexer.dll). Check what scilexer.lib you are linking.

                Best regards,
                Victor

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

                  Hi Victor,
                  I think my scintilla.lib is for import dll file. I also checked it and it doesn't have those functions.
                  I need to try to get other lib as you mentioned. 🙂

                  Regards,

                  Joseph

                  ps. Could you let me get your scintilla.lib ?

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

                    You can download it at https://www.netxms.org/download/dev/scilexer.lib.

                    Best regards,
                    Victor

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

                      Hi Victor,

                      Thank you. I compiled and linked it successfully with your lib.

                      Best Regards,

                      Joseph

                      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