This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: regarding gcc 4.1 to gcc 4.8


On Fri, 6 Jul 2018 at 17:54, Vahith .j <vahith@gmail.com> wrote:
>
> Hi All G'Day.,
>
> i am facing one issue when migrating my code to gcc 4.1 to 4.8, can you
> provide step to take for migration..
>
> *problems facing: *
> when i use gmake command on the my cpp code in gcc 4.1, it compiles fine
> and executing but same code when i using in gcc 4.8 version its giving
> below exception can you explain cause and solution for same

That's not an exception.


>
> error:
> *cc    -c -o include.o include.c*
> *In file included from include.c:30:0:*
> *def.h:131:9: error: conflicting types for ‘getline’*
> * char   getline();*
> *         ^*
> *In file included from def.h:31:0,*
> *                 from include.c:30:*
> */usr/include/stdio.h:678:20: note: previous declaration of ‘getline’ was
> here*
> * extern IO_ssize_t getline (char restrict _lineptr,*

It tells you that def.h has an incorrect declaration of getline, which
conflicts with the one in <stdio.h>

Remove the incorrect declaration.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]