P
Pacher R. Dragos
This question referes to mingw compiler, a port of gcc for win32.
When I tryed yesterday to compile this code:
int test(void);
int main()
{
return 0;
}
int test()
{
for( int i = 0 ; i < 5 ; i++ );
return 0;
}
i got the following error: "something about C99 standard"
then I changet the code like that:
int i = 0;
for( i, ..)
and the error was gone.
It was strange. When I tryed to reproduce it with the latest compiler
from mingw I couldn't do it, so I'm asking if that was a bug or just a
misconfiguration.
In my large projects this is not happening. Maybe I should post it to
mingw newsgroup but it referes the C99 standard.
If anyone has encountered this kind of 'strange error' please let me
know.
When I tryed yesterday to compile this code:
int test(void);
int main()
{
return 0;
}
int test()
{
for( int i = 0 ; i < 5 ; i++ );
return 0;
}
i got the following error: "something about C99 standard"
then I changet the code like that:
int i = 0;
for( i, ..)
and the error was gone.
It was strange. When I tryed to reproduce it with the latest compiler
from mingw I couldn't do it, so I'm asking if that was a bug or just a
misconfiguration.
In my large projects this is not happening. Maybe I should post it to
mingw newsgroup but it referes the C99 standard.
If anyone has encountered this kind of 'strange error' please let me
know.