#20 Version 0.8.0 does not compile with Visual C++

0.8.0
closed
None
5
2014-02-18
2014-01-08
Pavel
No

Line 232 of UriResole.c does: const int res = URI_FUNC(....;
Visual C++ still does not support C99, see http://stackoverflow.com/questions/8474100/ and http://stackoverflow.com/questions/146381/, therefore declaring a variable there is not allowed (it has to be right after a {).

The errors were:

\UriResolve.c(232): error C2143: syntax error : missing ';' before 'const'
\UriResolve.c(233): error C2065: 'res' : undeclared identifier
\UriResolve.c(234): error C2065: 'res' : undeclared identifier

These show up twice for me (once for W and once for A). Note that GCC compiles this without any problems. I used Visual Studio 2008, but I do not think it matters.

Side note: milestone 0.8.0 is missing in milestones list for bugs.

Discussion

  • Pavel
    Pavel
    2014-01-08

    The code now compiles without any issues. Thanks!

     
    • status: open --> closed
    • assigned_to: Sebastian Pipping
    • Group: Git HEAD --> 0.8.0