compile nxlexer files

Started by worud, January 20, 2010, 10:58:57 AM

Previous topic - Next topic

worud

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.


worud

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

worud

#2
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

Victor Kirhenshtein

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

worud

Hi Victor,

I'm using scintilla version 2.01.

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

Regards,

Joseph

worud

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)

Victor Kirhenshtein

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

worud

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 ?

Victor Kirhenshtein


worud

Hi Victor,

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

Best Regards,

Joseph