compilation problem

prachi prachi@miel.mot.com
Mon Feb 28 05:36:00 GMT 2000


Hi,

       I am using gcc version 2.95.2 19991024 (release) fo rcompilation of following program,

extern "C"  test();

main()
{
}

for this program, I get compiler error
g++ main.cc
main.cc:4: ANSI C++ forbids declaration `test' with no type

This is a test program. The real problem is,
 in one of my file, I have to use X11 and for some of the functions of X11 doesn't provide the
explicit
return type.
For example: extern XChangePointerControl(

So, I am not able to compile my program. I tried with older versions of g++ (gcc version 2.8.1) and
there is no problem while compiling.

Is there any way to compile my code with gcc 2.95.2 version?

Thanks in advance




More information about the Gcc-bugs mailing list