Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - worud

#1
Windows / Re: compile nxlexer files
January 28, 2010, 04:11:36 AM
Hi Victor,

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

Best Regards,

Joseph
#2
Windows / Re: compile nxlexer files
January 27, 2010, 04:48:01 PM
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 ?
#3
Windows / Re: compile nxlexer files
January 27, 2010, 06:37:54 AM
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)
#4
Windows / Re: compile nxlexer files
January 26, 2010, 03:22:41 AM
Hi Victor,

I'm using scintilla version 2.01.

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

Regards,

Joseph
#5
Windows / Re: compile nxlexer files
January 25, 2010, 02:01:57 AM
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
#6
Windows / Re: compile nxlexer files
January 20, 2010, 11:34:50 AM
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
#7
Windows / compile nxlexer files
January 20, 2010, 10:58:57 AM
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.

#8
Windows / Re: compile libnxsl files
January 20, 2010, 10:48:25 AM
Hi Victor,

I installed msys again and tried it. It was successful.

Thank you.

Regards,

Joseph
#9
Windows / Re: compile libnxsl files
January 19, 2010, 03:13:46 AM
Hello,

I moved GnuWin32 directory to root and looks working fine.
But it still has some dregs.  ;)
I downloaded flex version 2.5.4 to compile parser.l file and tried but failed.
I got a message like follows. I think it is  related with version of flex.
What version of flex do you using?

--------------------Configuration: libnxsl - Win32 Release--------------------
Compiling .\parser.l
flex: unknown flag '-'.  For usage, try
flex --help
Error executing c:\windows\system32\cmd.exe.

lex.yy.cpp - 1 error(s), 0 warning(s)
----------------------------------------------------------------------------

Because of the above message, I removed one '-' from "-nounistd" flag. I think it was passed but I had another messages like follows.

--------------------Configuration: libnxsl - Win32 Release--------------------
Compiling .\parser.l
flex: -o flag must be given separately
Error executing c:\windows\system32\cmd.exe.

lex.yy.cpp - 1 error(s), 0 warning(s)
----------------------------------------------------------------------------

So I gave a space at '-o' flag like '-o lex.yy.cpp'. But still has problem.

--------------------Configuration: libnxsl - Win32 Release--------------------
Compiling .\parser.l
flex: can't open lex.yy.cpp
Error executing c:\windows\system32\cmd.exe.

lex.yy.cpp - 1 error(s), 0 warning(s)
---------------------------------------------------------------------------

Best Regards,

Joseph
#10
Windows / compile libnxsl files
January 18, 2010, 04:48:45 AM
Hi Victor,
I'm here again. There art further progress in compiling sources.
But I have another obstacle to overcome.
When I try to compile libnsxl, I've got errors like follows. I installed bison V2.4.1.
Can you guess what are problems?

--------------------Configuration: libnxsl - Win32 Release--------------------
Compiling .\parser.y
m4: cannot open `Files\GnuWin32/share/bison': No such file or directory
m4: cannot open `C:\Program': No such file or directory
m4: cannot open `Files\GnuWin32/share/bison/m4sugar/m4sugar.m4': No such file or directory

Regards,

Joseph
#11
Hi Victor,

Great hear from you again.

Thank you very much.

Best Regards,

Joseph Hahn
#12
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
#13
Windows / error C2065: 'SOCKET' : undeclared identifier
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