big gcc/g++ problems

Downloading and trying to compile various soft from net I got often these errors from gcc or g++:

foo.hh:nn: ISO C++ forbids defining types within return type
goo.hh:xx: ISO C++ forbids declaration of `bar' with no type

How can I overcome this errors?Is this a way for disabling ISO c++ extensions for gcc?
Please help!I need to compile those programs.


Comments

  • : Downloading and trying to compile various soft from net I got often these errors from gcc or g++:
    :
    : foo.hh:nn: ISO C++ forbids defining types within return type
    : goo.hh:xx: ISO C++ forbids declaration of `bar' with no type
    :
    : How can I overcome this errors?Is this a way for disabling ISO c++ extensions for gcc?
    : Please help!I need to compile those programs.
    :
    :
    :

    I think you had a source code with those lines:

    ...
    return int a; // or something like that

    and

    ...
    bar = 15; //you first had to write int bar; or int bar=15;


Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

In this Discussion