Well, I got all the STATSTRUCT amd STATFUNC problems solved.
These should be defined as
STATFUNC _stat
and STATSTRUCT _stat
There is nothing STATFUNC and STATSSTRUCT in Microsoft headers.
I guess Greg's Windows MSVC wrappers might be picking up stuff from Cygwin
include
directory.
Now only one is left in libdx/qsort.c
G:\dx-msvc\dx\src\exec\libdx\qsort.c(29) : error C2143: syntax error :
missing ')' before '*'
G:\dx-msvc\dx\src\exec\libdx\qsort.c(29) : error C2143: syntax error :
missing '{' before '*'
G:\dx-msvc\dx\src\exec\libdx\qsort.c(29) : error C2143: syntax error :
missing ';' before '*'
G:\dx-msvc\dx\src\exec\libdx\qsort.c(29) : error C2059: syntax error : ')'
G:\dx-msvc\dx\src\exec\libdx\qsort.c(32) : error C2143: syntax error :
missing ')' before '*'
G:\dx-msvc\dx\src\exec\libdx\qsort.c(32) : error C2143: syntax error :
missing '{' before '*'
G:\dx-msvc\dx\src\exec\libdx\qsort.c(32) : error C2059: syntax error :
'type'
G:\dx-msvc\dx\src\exec\libdx\qsort.c(32) : error C2059: syntax error : ')'
G:\dx-msvc\dx\src\exec\libdx\qsort.c(93) : error C2143: syntax error :
missing ')' before '*'
G:\dx-msvc\dx\src\exec\libdx\qsort.c(93) : error C2143: syntax error :
missing '{' before '*'
G:\dx-msvc\dx\src\exec\libdx\qsort.c(93) : error C2143: syntax error :
missing ';' before '*'
G:\dx-msvc\dx\src\exec\libdx\qsort.c(93) : error C2059: syntax error : ')'
G:\dx-msvc\dx\src\exec\libdx\qsort.c(94) : error C2054: expected '(' to
follow 'max'
task.c
And Microsft MSDN refers to C2143 error as problem in syntex of the code.
Compiler Error C2143
syntax error : missing 'token1' before 'token2'
A syntax error is an error in the use of the language. A token is a language
element such as a keyword or operator. Roughly translated, anything that is
not whitespace (spaces, tabs, line feeds, comments, and so on) is a token.
The compiler expects certain language elements to appear before or after
other elements. For instance, an if statement requires that the first
non-whitespace character following the word if must be an opening
parenthesis. If anything else is used, the compiler cannot “understand” the
statement. For example:
if j < 25 // syntax error : missing '(' before 'j'