[Bug driver/47676] error: field âOttybâ has incomplete type

redi at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Feb 10 14:39:00 GMT 2011


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47676

--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> 2011-02-10 13:52:48 UTC ---
(In reply to comment #2)
> The same code is being used before, which was compiling properly, but when
> migrated to Linux+gcc, it is giving this issue.

That's not a compiler bug. That means your code is not portable.

This code will compile on some UNIX platforms, but not on GNU/Linux:

  #include <sys/mman.h>
  caddr_t* p = 0;

But that's not a GCC bug, it's because the code is not portable.

Anyway, if you think it is a bug you need to follow the bug reporting
instructions.



More information about the Gcc-bugs mailing list