This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Building the Host tools on Windows


Hi, 

I'm trying to build the host tools on Windows in Visual Studio 6.

I think that I've finally managed to set everything up correctly so that the
build process starts, 
(This included adding C:\cygwin\bin to VCs "Executable" directory list), but
I am getting a lot
of syntax errors.

It seems that the build is using the cygwin headers for "Types.h" and some
other system headers and,
on the other hand, relying on VCs internal headers for STL. I haven't really
found much documentation
other than "Open the project in VS and build." for the tools, so I was
wondering if anyone could shed
some light on this. (I grabbed the sources from CVS the yesterday(?).)


Thanks for your help!

Srdjan




------
The log of the build follows....
(If you want the whole log, let me know.)


make[3]: Leaving directory `/cygdrive/v/cdl/Release/build/libcdl/testsuite'
make[2]: Leaving directory `/cygdrive/v/cdl/Release/build/libcdl/testsuite'
make[2]: Entering directory `/cygdrive/v/cdl/Release/build/libcdl'
cl -nologo -W3 -GR -GX -MD -O2 -DHAVE_CONFIG_H -I.
-I/usr/local/ecos/host/libcdl -I. "-Ic:/ecos/host/libcdl"
"-Iv:/cdl/Release/build/infra" "-IC:/cygwin/usr/include"     -c `cygpath -w
/usr/local/ecos/host/libcdl/interp.cxx`
interp.cxx
C:/cygwin/usr/include\sys/types.h(112) : error C2632: 'long' followed by
'long' is illegal
C:/cygwin/usr/include\sys/types.h(113) : error C2632: 'long' followed by
'long' is illegal
C:/cygwin/usr/include\sys/reent.h(213) : error C2632: 'long' followed by
'long' is illegal
C:/cygwin/usr/include\sys/reent.h(213) : error C2144: syntax error : missing
';' before type 'unsigned long'
C:/cygwin/usr/include\sys/reent.h(213) : error C2501: '__extension__' :
missing storage-class or type specifiers
C:/cygwin/usr/include\stdlib.h(48) : error C2733: second C linkage of
overloaded function 'atexit' not allowed
        C:/cygwin/usr/include\stdlib.h(48) : see declaration of 'atexit'
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\iosfwd(73) : error
C2065: 'mbstate_t' : undeclared identifier
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\iosfwd(82) : error
C2146: syntax error : missing ';' before identifier 'state_type'
        C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\iosfwd(135) :
see reference to class template instantiation 'std::char_traits<_E>' being
compiled
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\iosfwd(82) : error
C2501: 'state_type' : missing storage-class or type specifiers
        C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\iosfwd(135) :
see reference to class template instantiation 'std::char_traits<_E>' being
compiled
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\iosfwd(140) : error
C2146: syntax error : missing ';' before identifier 'int_type'
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\iosfwd(140) : error
C2501: 'int_type' : missing storage-class or type specifiers
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\iosfwd(143) : error
C2146: syntax error : missing ';' before identifier 'state_type'
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\iosfwd(143) : error
C2501: 'state_type' : missing storage-class or type specifiers
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\iosfwd(163) : error
C2143: syntax error : missing ',' before '&'
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\iosfwd(163) : error
C2059: syntax error : '&'
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\iosfwd(165) : error
C2143: syntax error : missing ';' before '__cdecl'
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\iosfwd(166) : warning
C4183: 'to_int_type': member function definition looks like a ctor, but name
does not match enclosing class
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\iosfwd(167) : error
C2143: syntax error : missing ',' before '&'


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]