When compiling todays' trunk using CMake I get a whole bunch of errors:
9>d:\lyxsvn\lyx-devel\intl\gettextP.h(109) : error C2054: expected '(' to
follow 'inline'
9>d:\lyxsvn\lyx-devel\intl\gettextP.h(110) : error C2085: 'SWAP' : not in
formal parameter list
9>d:\lyxsvn\lyx-devel\intl\gettextP.h(110) : error C2143: syntax error :
missing ';' before 'type'
9>d:\lyxsvn\lyx-devel\intl\gettextP.h(110) : error C2085: 'i' : not in formal
parameter list
9>..\..\intl\loadmsgcat.c(481) : warning C4005: 'alloca' : macro redefinition
9> C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\include\malloc.h(262) : see previous
definition of 'alloca'
9>..\..\intl\loadmsgcat.c(728) : error C2065: 'uintmax_t' : undeclared
identifier
9>..\..\intl\loadmsgcat.c(730) : error C2065: 'uintmax_t' : undeclared
identifier
9>..\..\intl\loadmsgcat.c(783) : warning C4013: '__libc_lock_define_initialized_recursive'
undefined; assuming extern returning int
9>..\..\intl\loadmsgcat.c(783) : error C2143: syntax error : missing ')' before
'type'
9>..\..\intl\loadmsgcat.c(783) : error C2059: syntax error : ')'
9>..\..\intl\loadmsgcat.c(785) : error C2275: 'size_t' : illegal use of this
type as an expression
9> c:\program files (x86)\microsoft visual studio
9.0\vc\include\codeanalysis\sourceannotations.h(19) : see declaration of 'size_t'
9>..\..\intl\loadmsgcat.c(785) : error C2146: syntax error : missing ';' before
identifier 'size'
9>..\..\intl\loadmsgcat.c(785) : error C2065: 'size' : undeclared identifier
9>..\..\intl\loadmsgcat.c(789) : error C2143: syntax error : missing ';' before
'type'
9>..\..\intl\loadmsgcat.c(791) : error C2143: syntax error : missing ';' before
'type'
9>..\..\intl\loadmsgcat.c(795) : error C2143: syntax error : missing ';' before
'const'
9>..\..\intl\loadmsgcat.c(796) : error C2275: 'size_t' : illegal use of this
type as an expression
9> c:\program files (x86)\microsoft visual studio
9.0\vc\include\codeanalysis\sourceannotations.h(19) : see declaration of 'size_t'
9>..\..\intl\loadmsgcat.c(796) : error C2146: syntax error : missing ';' before identifier
'nullentrylen'
9>..\..\intl\loadmsgcat.c(796) : error C2065: 'nullentrylen' : undeclared
identifier
9>..\..\intl\loadmsgcat.c(798) : warning C4013: '__libc_lock_lock_recursive' undefined; assuming
extern returning int
9>..\..\intl\loadmsgcat.c(798) : error C2065: 'lock' : undeclared identifier
9>..\..\intl\loadmsgcat.c(828) : error C2065: 'fd' : undeclared identifier
9>..\..\intl\loadmsgcat.c(828) : warning C4013: 'open' undefined; assuming
extern returning int
9>..\..\intl\loadmsgcat.c(829) : error C2065: 'fd' : undeclared identifier
9>..\..\intl\loadmsgcat.c(837) : error C2065: 'fd' : undeclared identifier
9>..\..\intl\loadmsgcat.c(837) : error C2065: 'st' : undeclared identifier
9>..\..\intl\loadmsgcat.c(837) : warning C4133: 'function' : incompatible types - from 'int *' to
'stat *'
9>..\..\intl\loadmsgcat.c(839) : error C2065: 'size' : undeclared identifier
9>..\..\intl\loadmsgcat.c(839) : error C2065: 'st' : undeclared identifier
9>..\..\intl\loadmsgcat.c(839) : error C2224: left of '.st_size' must have
struct/union type
9>..\..\intl\loadmsgcat.c(839) : error C2065: 'st' : undeclared identifier
9>..\..\intl\loadmsgcat.c(839) : error C2224: left of '.st_size' must have
struct/union type
9>..\..\intl\loadmsgcat.c(840) : error C2065: 'size' : undeclared identifier
9>..\..\intl\loadmsgcat.c(861) : error C2065: 'data' : undeclared identifier
9>..\..\intl\loadmsgcat.c(861) : warning C4047: '==' : 'int' differs in levels of indirection from
'mo_file_header *'
This is an excerpt of 74 errors I get.
Is this my mistake or not? If yes, what do I have to do to be able to compile
LyX using CMake?
thanks and regards
Uwe