Pukara Rob wrote:
> Hello everybody. I would appreciate very much if someone can answer me
> the following:
>
>
> 1) I am using a system with some libraries. When I try to compile a
> program with those libraries I get a lot of errors. But just check the
> first one:
>
> C:\PROGRA~1\ACTIVM~1\ARIA\include\ArLog.h:83: ANSI C++ forbids
> declaration `FILE' with no type
> C:\PROGRA~1\ACTIVM~1\ARIA\include\ArLog.h:83: parse error before `*'
>
>
> Now checking that line in "ArLog.h" we have:
>
> protected:
> static FILE *ourFP;
>
> But that is a prefectly fine line as fas as I know. Why does DevC++
> protest about this? Ansi forbids FILE with no type???? I don't get it.
Does ArLog.h include stdio.h anywhere?
> 2) Hasnt nobody notice the mistake in file
> "c:\dev-c...\include\winsock2.h "
>
> In the last lines there is a '#' missing which makes the compile protest
> of unbalanced #endif's
> Did someone notice? Is it a mistake of DevC++?
No, it is likely a mistake of MinGW, the compiler in Dev-C++. Head on to
http://www.mingw.org
for details, and send a bug report. It is good that you have found it.
But first, download the latest Win32 API headers and libraries from the
website (win32api), and see if it is fixed.
--
Greetings,
Balázs
|