ISO C++ forbids declaration of with no type question ( Xlib.h)

原创 2004年08月10日 12:32:00

今天编译ibm上的程序发现gcc 3.2.3的一个bug,需要在编译选项上加入-fpermissvie即可编译成功。

And I don't seems to include the g++ path to my include/lib list.  Did you
> include them in when you build 4.07 version ?  Please share your
> experience in building it.
>

You MUST edit all the Makefiles in uipp and its subdirectories and add
-fpermissive after c++, i.e. c++ -fpermissive otherwise g++ will
not compile when it hits Xlib.h and Xuutil.h.  This is a known X11 headers
problems.  Adding -fpermissive flag changes errors to warnings and will at
least let you compile.

C++11下编译错误 ISO C++ forbids declaration of ‘typeof’ with no type

参考https://code.google.com/p/google-breakpad/issues/detail?id=481 ISO C++ forbids declaratio...
  • godvmxi
  • godvmxi
  • 2016-10-08 19:08:25
  • 2181

error: ISO C++ forbids declaration of ‘xxx’ with no type [-fpermissive]

错误代码: class Message; class Folder{ public:     addMsg(Message *pm);//将关键字为pm的元素添加     remMs...
  • ml422524
  • ml422524
  • 2015-12-04 16:55:11
  • 6888

编译错误:ISO C++ forbids declaration of *** with no type

转自 今天遇到个问题,“ISO C++ forbids declaration of *** with no type”。 错误的原因一般是:两个头文件相互include,一般可以采用#ifn...
  • sno_guo
  • sno_guo
  • 2014-04-20 09:25:25
  • 22938

error: ISO C++ forbids declaration of 'XXXX' with no type

出现这个错误,一般是由于两个CPP相互都相互包含了对方的头文件造成的,比如:当mainwindow.cpp、configdialog.cpp两个文件,分别包含了对方的头文件,并且分别又在自己的类中生命...
  • li_hai
  • li_hai
  • 2010-09-09 17:55:00
  • 20182

ISO C++ forbids declaration of ‘vector’ with no type

错误:ISO C++ forbids declaration of ‘vector’ with no type 首先,这句话的意思是:ISO C++ 禁止声明 'vector'时不带类型。也就是说'...
  • pyjfoot
  • pyjfoot
  • 2013-01-09 01:44:02
  • 4864

ISO C++ forbids declaration of ‘Contack’ with no type [-fpermissive]

真实要注意构造函数如果没有和类名相同,包括大小写也要相同,不然报这个错。或者是普通函数没有加返回类型。...
  • onlyou2030
  • onlyou2030
  • 2015-09-16 13:17:46
  • 270

google-breakpad在 C++11下编译错误 ISO C++ forbids declaration of ‘typeof’ with no type

ISO C++ forbids declaration of ‘typeof’ with no type typedef ‘google_breakpad::typeof’ is initialize...
  • brook0344
  • brook0344
  • 2014-05-08 15:16:14
  • 5094

ISO C90 forbids mixed declarations and code[-Wdeclaration-after-statement]

ISO C90 forbids mixed declarations and code[-Wdeclaration-after-statement]
  • yanlaifan
  • yanlaifan
  • 2016-04-23 13:01:49
  • 2696

warning: ISO C90 forbids mixed declaration

意思:C90 标准禁止混合声明; 一般出现此错误的原因是:声明写在了函数调用命令的后面,改过来就没事; 但在liunx内核编程中,即使所写命令中涉及的变量已经在模块入口函数前声明过,也不能将后续其它变...
  • chen22075x
  • chen22075x
  • 2014-02-13 20:20:35
  • 879

c++错误集合

1. 错误:expected unqualified-id before ‘using’  其实就是类声明后面没有加分号导致的。 类声明的时候没有加分号,还可能导致一个错误 错误:一个声明...
  • nocodelife
  • nocodelife
  • 2013-01-22 15:11:48
  • 1425
收藏助手
不良信息举报
您举报文章:ISO C++ forbids declaration of with no type question ( Xlib.h)
举报原因:
原因补充:

(最多只允许输入30个字)