News:

We really need your input in this questionnaire

Main Menu

Complie error

Started by naseer, October 19, 2011, 06:18:23 PM

Previous topic - Next topic

Complie error

1
0 (0%)
2
0 (0%)

Total Members Voted: 0

naseer

Hi
i am try to compile netxms-1.0.12 in vc 6  
1 fatal error C1083: Cannot open include file: 'winevt.h': No such file or directory
Error executing cl.exe.
2 fatal error C1083: Cannot open include file: 'Accessor.h': No such file or directory
nxlexer.cpp
3  fatal error C1083: Cannot open include file: 'PropSet.h': No such file or directory
nxlexer.cpp

plz guide me which package is required for these files
best regrard

Victor Kirhenshtein

Hi!

Error 1 - most likely you have outdated Windows SDK.
Errors 2 and 3 - you need scintilla to build nxlexer dll.

Best regards,
Victor

naseer

Thanks for reply
Compiling .\parser.y
'bison' is not recognized as an internal or external command,
operable program or batch file.
Error executing c:\windows.0\system32\cmd.exe.
PlZ tell me how it can besolved

naseer

 1 i have install Microsoft Visual Studio 2008 SDK
but still not solved .plz indicate version of sdk.
2  i install scintilla
but gave these error
C:\Net XMS project\software\scintilla\lexlib\Accessor.h(23) : error C2504: 'LexAccessor' : base class undefined
C:\Net XMS project\software\scintilla\lexlib\Accessor.h(26) : error C2629: unexpected 'class Accessor ('
C:\Net XMS project\software\scintilla\lexlib\Accessor.h(26) : error C2238: unexpected token(s) preceding ';'
C:\NET XMS PROJECT\SOFTWARE\SCINTILLA\INCLUDE\WindowAccessor.h(15) : error C2079: 'WindowAccessor' uses undefined class 'SCILEXER_EXPORTABLE'
C:\NET XMS PROJECT\SOFTWARE\SCINTILLA\INCLUDE\WindowAccessor.h(15) : error C2239: unexpected token ':' following declaration of 'WindowAccessor'
C:\NET XMS PROJECT\SOFTWARE\SCINTILLA\INCLUDE\WindowAccessor.h(15) : error C2059: syntax error : 'public'
C:\Net XMS project\New netxms\netxms-1.0.12\src\console\nxlexer\config.cpp(31) : error C2065: 'acc' : undeclared identifier
C:\Net XMS project\New netxms\netxms-1.0.12\src\console\nxlexer\config.cpp(31) : error C2062: type 'int' unexpected
C:\Net XMS project\New netxms\netxms-1.0.12\src\console\nxlexer\config.cpp(32) : error C2143: syntax error : missing ';' before '{'
C:\Net XMS project\New netxms\netxms-1.0.12\src\console\nxlexer\config.cpp(32) : error C2447: missing function header (old-style formal list?)
C:\Net XMS project\New netxms\netxms-1.0.12\src\console\nxlexer\config.cpp(55) : error C2061: syntax error : identifier 'WindowAccessor'
C:\Net XMS project\New netxms\netxms-1.0.12\src\console\nxlexer\config.cpp(63) : error C2228: left of '.SafeGetCharAt' must have class/struct/union type
C:\Net XMS project\New netxms\netxms-1.0.12\src\console\nxlexer\config.cpp(70) : error C2228: left of '.SafeGetCharAt' must have class/struct/union type
C:\Net XMS project\New netxms\netxms-1.0.12\src\console\nxlexer\config.cpp(87) : error C2228: left of '.SafeGetCharAt' must have class/struct/union type
C:\Net XMS project\New netxms\netxms-1.0.12\src\console\nxlexer\config.cpp(91) : error C2065: 'IsLineStart' : undeclared identifier
C:\Net XMS project\New netxms\netxms-1.0.12\src\console\nxlexer\config.cpp(99) : error C2228: left of '.SafeGetCharAt' must have class/struct/union type
C:\Net XMS project\New netxms\netxms-1.0.12\src\console\nxlexer\config.cpp(104) : error C2228: left of '.ColourTo' must have class/struct/union type
C:\Net XMS project\New netxms\netxms-1.0.12\src\console\nxlexer\config.cpp(172) : error C2228: left of '.ColourTo' must have class/struct/union type
C:\Net XMS project\New netxms\netxms-1.0.12\src\console\nxlexer\config.cpp(176) : error C2228: left of '.ColourTo' must have class/struct/union type
nxlexer.cpp
C:\Net XMS project\software\scintilla\lexlib\Accessor.h(23) : error C2504: 'LexAccessor' : base class undefined
C:\Net XMS project\software\scintilla\lexlib\Accessor.h(26) : error C2629: unexpected 'class Accessor ('
C:\Net XMS project\software\scintilla\lexlib\Accessor.h(26) : error C2238: unexpected token(s) preceding ';'
C:\NET XMS PROJECT\SOFTWARE\SCINTILLA\INCLUDE\WindowAccessor.h(15) : error C2079: 'WindowAccessor' uses undefined class 'SCILEXER_EXPORTABLE'
C:\NET XMS PROJECT\SOFTWARE\SCINTILLA\INCLUDE\WindowAccessor.h(15) : error C2239: unexpected token ':' following declaration of 'WindowAccessor'
C:\NET XMS PROJECT\SOFTWARE\SCINTILLA\INCLUDE\WindowAccessor.h(15) : error C2059: syntax error : 'public'
C:\Net XMS project\New netxms\netxms-1.0.12\src\console\nxlexer\nxlexer.cpp(39) : error C2061: syntax error : identifier 'WindowAccessor'
C:\Net XMS project\New netxms\netxms-1.0.12\src\console\nxlexer\nxlexer.cpp(41) : error C2061: syntax error : identifier 'WindowAccessor'
C:\Net XMS project\New netxms\netxms-1.0.12\src\console\nxlexer\nxlexer.cpp(43) : error C2061: syntax error : identifier 'WindowAccessor'
C:\Net XMS project\New netxms\netxms-1.0.12\src\console\nxlexer\nxlexer.cpp(106) : error C2065: 'PropSet' : undeclared identifier
C:\Net XMS project\New netxms\netxms-1.0.12\src\console\nxlexer\nxlexer.cpp(106) : error C2146: syntax error : missing ';' before identifier 'ps'
C:\Net XMS project\New netxms\netxms-1.0.12\src\console\nxlexer\nxlexer.cpp(106) : error C2065: 'ps' : undeclared identifier
C:\Net XMS project\New netxms\netxms-1.0.12\src\console\nxlexer\nxlexer.cpp(107) : error C2228: left of '.SetMultiple' must have class/struct/union type
C:\Net XMS project\New netxms\netxms-1.0.12\src\console\nxlexer\nxlexer.cpp(108) : error C2146: syntax error : missing ';' before identifier 'acc'
C:\Net XMS project\New netxms\netxms-1.0.12\src\console\nxlexer\nxlexer.cpp(108) : error C2065: 'acc' : undeclared identifier
C:\Net XMS project\New netxms\netxms-1.0.12\src\console\nxlexer\nxlexer.cpp(110) : error C2228: left of '.StartAt' must have class/struct/union type
C:\Net XMS project\New netxms\netxms-1.0.12\src\console\nxlexer\nxlexer.cpp(111) : error C2228: left of '.StartSegment' must have class/struct/union type
C:\Net XMS project\New netxms\netxms-1.0.12\src\console\nxlexer\nxlexer.cpp(126) : error C2228: left of '.Flush' must have class/struct/union type
nxsl.cpp
C:\Net XMS project\software\scintilla\lexlib\Accessor.h(23) : error C2504: 'LexAccessor' : base class undefined
C:\Net XMS project\software\scintilla\lexlib\Accessor.h(26) : error C2629: unexpected 'class Accessor ('
C:\Net XMS project\software\scintilla\lexlib\Accessor.h(26) : error C2238: unexpected token(s) preceding ';'
C:\NET XMS PROJECT\SOFTWARE\SCINTILLA\INCLUDE\WindowAccessor.h(15) : error C2079: 'WindowAccessor' uses undefined class 'SCILEXER_EXPORTABLE'
C:\NET XMS PROJECT\SOFTWARE\SCINTILLA\INCLUDE\WindowAccessor.h(15) : error C2239: unexpected token ':' following declaration of 'WindowAccessor'
C:\NET XMS PROJECT\SOFTWARE\SCINTILLA\INCLUDE\WindowAccessor.h(15) : error C2059: syntax error : 'public'
C:\Net XMS project\New netxms\netxms-1.0.12\src\console\nxlexer\nxsl.cpp(31) : error C2065: 'acc' : undeclared identifier
C:\Net XMS project\New netxms\netxms-1.0.12\src\console\nxlexer\nxsl.cpp(31) : error C2062: type 'int' unexpected
C:\Net XMS project\New netxms\netxms-1.0.12\src\console\nxlexer\nxsl.cpp(32) : error C2143: syntax error : missing ';' before '{'
C:\Net XMS project\New netxms\netxms-1.0.12\src\console\nxlexer\nxsl.cpp(32) : error C2447: missing function header (old-style formal list?)
C:\Net XMS project\New netxms\netxms-1.0.12\src\console\nxlexer\nxsl.cpp(55) : error C2061: syntax error : identifier 'WindowAccessor'
C:\Net XMS project\New netxms\netxms-1.0.12\src\console\nxlexer\nxsl.cpp(70) : error C2228: left of '.SafeGetCharAt' must have class/struct/union type
C:\Net XMS project\New netxms\netxms-1.0.12\src\console\nxlexer\nxsl.cpp(78) : error C2228: left of '.SafeGetCharAt' must have class/struct/union type
C:\Net XMS project\New netxms\netxms-1.0.12\src\console\nxlexer\nxsl.cpp(83) : error C2228: left of '.SafeGetCharAt' must have class/struct/union type
C:\Net XMS project\New netxms\netxms-1.0.12\src\console\nxlexer\nxsl.cpp(89) : error C2228: left of '.SafeGetCharAt' must have class/struct/union type
C:\Net XMS project\New netxms\netxms-1.0.12\src\console\nxlexer\nxsl.cpp(91) : error C2228: left of '.ColourTo' must have class/struct/union type
C:\Net XMS project\New netxms\netxms-1.0.12\src\console\nxlexer\nxsl.cpp(113) : error C2228: left of '.ColourTo' must have class/struct/union type
C:\Net XMS project\New netxms\netxms-1.0.12\src\console\nxlexer\nxsl.cpp(114) : error C2228: left of '.ColourTo' must have class/struct/union type
C:\Net XMS project\New netxms\netxms-1.0.12\src\console\nxlexer\nxsl.cpp(142) : error C2228: left of '.SafeGetCharAt' must have class/struct/union type
C:\Net XMS project\New netxms\netxms-1.0.12\src\console\nxlexer\nxsl.cpp(147) : error C2228: left of '.ColourTo' must have class/struct/union type
C:\Net XMS project\New netxms\netxms-1.0.12\src\console\nxlexer\nxsl.cpp(178) : error C2228: left of '.SafeGetCharAt' must have class/struct/union type
C:\Net XMS project\New netxms\netxms-1.0.12\src\console\nxlexer\nxsl.cpp(207) : error C2228: left of '.ColourTo' must have class/struct/union type
C:\Net XMS project\New netxms\netxms-1.0.12\src\console\nxlexer\nxsl.cpp(211) : error C2228: left of '.ColourTo' must have class/struct/union type
poll.cpp
C:\Net XMS project\software\scintilla\lexlib\Accessor.h(23) : error C2504: 'LexAccessor' : base class undefined
C:\Net XMS project\software\scintilla\lexlib\Accessor.h(26) : error C2629: unexpected 'class Accessor ('
C:\Net XMS project\software\scintilla\lexlib\Accessor.h(26) : error C2238: unexpected token(s) preceding ';'
C:\NET XMS PROJECT\SOFTWARE\SCINTILLA\INCLUDE\WindowAccessor.h(15) : error C2079: 'WindowAccessor' uses undefined class 'SCILEXER_EXPORTABLE'
C:\NET XMS PROJECT\SOFTWARE\SCINTILLA\INCLUDE\WindowAccessor.h(15) : error C2239: unexpected token ':' following declaration of 'WindowAccessor'
C:\NET XMS PROJECT\SOFTWARE\SCINTILLA\INCLUDE\WindowAccessor.h(15) : error C2059: syntax error : 'public'
C:\Net XMS project\New netxms\netxms-1.0.12\src\console\nxlexer\poll.cpp(31) : error C2065: 'acc' : undeclared identifier
C:\Net XMS project\New netxms\netxms-1.0.12\src\console\nxlexer\poll.cpp(31) : error C2062: type 'int' unexpected
C:\Net XMS project\New netxms\netxms-1.0.12\src\console\nxlexer\poll.cpp(39) : error C2061: syntax error : identifier 'WindowAccessor'
C:\Net XMS project\New netxms\netxms-1.0.12\src\console\nxlexer\poll.cpp(47) : error C2228: left of '.SafeGetCharAt' must have class/struct/union type
C:\Net XMS project\New netxms\netxms-1.0.12\src\console\nxlexer\poll.cpp(54) : error C2228: left of '.SafeGetCharAt' must have class/struct/union type
C:\Net XMS project\New netxms\netxms-1.0.12\src\console\nxlexer\poll.cpp(65) : error C2228: left of '.SafeGetCharAt' must have class/struct/union type
C:\Net XMS project\New netxms\netxms-1.0.12\src\console\nxlexer\poll.cpp(117) : error C2228: left of '.ColourTo' must have class/struct/union type
C:\Net XMS project\New netxms\netxms-1.0.12\src\console\nxlexer\poll.cpp(121) : error C2228: left of '.ColourTo' must have class/struct/union type
Error executing cl.exe.



Victor Kirhenshtein

Hi!

Maybe it's wrong scintilla version. We use quite old version of it.
Btw, what is your final goal? Why you are trying to compile NetXMS for Windows?

If you don't need to change 1.0.x branch for any reason, I would recommend using 1.1.x branch for all new development. It is actively developed, and among other bonuses, it requires Visual Studio 2005, and all third-party libraries except OpenSSL are bundled and built as part of NetXMS. This can greatly simplify build process.

Best regards,
Victor


naseer

Thanks for reply
new i am compiling netxms 1.1.5 in visual studio 2005 i am finding these  error
1   A tool returned an error code from "Running BISON on parser.y"
2   error PRJ0019: A tool returned an error code from "Running message compiler"
plz tell me it will be solved

Victor Kirhenshtein

You need flex and bison from msys. Directory with them should be added to binary directories in visual studio options.

Best regards,
Victor

naseer

Thanks for reply i install bison-2.4.1-setup.exe and aslo set directory path
plz tell me where is problems
Running message compiler
1>MC: may only specify one message file to compile.
1>MC: may only specify one message file to compile.
1>MC: may only specify one message file to compile.
1>MC: may only specify one message file to compile.
1>Microsoft (R) Message Compiler  Version 1.12.2505
1>Copyright (c) Microsoft Corporation. All rights reserved.
1>usage: MC [-?aAcdnosuUvw] [-m maxmsglen] [-h dirspec] [-e extension] [-r dirspec] [-x dbgFileSpec] filename.mc
1>       -? - displays this message
1>       -a - input file is ANSI (default).
1>       -A - messages in .BIN file should be ANSI.
1>       -b - .BIN filename should have .mc filename_ included for uniqueness.
1>       -c - sets the Customer bit in all the message Ids.
1>       -d - FACILTY and SEVERITY values in header file in decimal.
1>            Sets message values in header to decimal initially.
1>       -e extension - Specify the extension for the header file.
1>                      From 1 - 3 chars.
1>       -h pathspec - gives the path of where to create the C include file
1>                     Default is .\
1>       -m maxmsglen - generate a warning if the size of any message exceeds
1>                      maxmsglen characters.
1>       -n - terminates all strings with null's in the message tables.
1>       -o - generate OLE2 header file (use HRESULT definition instead of
1>            status code definition)
1>       -r pathspec - gives the path of where to create the RC include file
1>                     and the binary message resource files it includes.
1>                     Default is .\
1>       -s - insert symbolic name as first line of each message.
1>       -u - input file is Unicode.
1>       -U - messages in .BIN file should be Unicode (default).
1>       -v - gives verbose output.
1>       -w - warns if message text contains non-OS/2 compatible inserts.
1>       -x pathspec - gives the path of where to create the .dbg C include
1>                        file that maps message Ids to their symbolic name.
1>       filename.mc - gives the names of a message text file
1>                     to compile.
1>       Generated files have the Archive bit cleared.
1>The system cannot find the path specified.
1>Project : error PRJ0019: A tool returned an error code from "Running message compiler"