There's a configure macro DX_CHECK_STAT to determine what the correct
function and structure names are.  In the current version its getting
confused because for some reason its internal check for windows.h is
failing.  Don't know why; I'm working on it.  Its also getting confused if
configure re-runs as part of make because the arch is not cached, so
explicit setting of it when you ; I need to handle that better.  Working on
that, too.  The qsort.c problem is odd; it shouldn't be trying to compile
qsort.c at all; thats code that is #included into other .c files and isn't
ever compiled on its own.  We might argue whether it ought to be .h.
Anyway, I'm not done with this, but I'm getting close.

Greg


Please respond to [email protected]

Sent by:  [EMAIL PROTECTED]


To:   <[email protected]>
cc:
Subject:  RE: [opendx-dev] Win32 MSVC




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'




Reply via email to