I have recently tried compiling C code 'secondchess.c' in Win7 with MSVisStudio2010 cl cmd compiler & this returns a whole bunch of errors/warnings etc. I also have TCC compiler on my Win7 machine & used it to compile the code which it did without any complaint!
See my thread on chess2u forum about this:
SecondChess - Page 2
I am a very inexperienced coder but would like to try to use standards compliant code & so I am very grateful if someone can help me sort out the errors this code gets in MSvisStudio2010 cl compiler.
(As in my chess forum post I have spent a lot of time already trying to fix this but with no success-please remember I am an amateur programmer & new to C/C++).
These are the first errors given:
& I have tried to fix them but no result & there are so many more errors! Why does MSVisStudio2010 cl compiler baulk at this & yet tcc (& gcc-I think but I have not used gcc as I'm on Win7) doesn't?Code:secondchess.c(785) : error C2143: syntax error : missing ';' before 'type' secondchess.c(789) : error C2143: syntax error : missing ';' before 'type' secondchess.c(792) : error C2065: 'i' : undeclared identifier