ChinaUnix.net
相关文章推荐:

errorunknown field 'private' specified in initializer

因为程序中使用了如下的代码方式: struct A{ int a; int b; }; A a = {0}; // 编译这句话,就会产生这样的警告 在gcc 3.2.3上面就会出现这样的警告,在编译选项里面加了-Werror之后,就有问题,过不去了 在gcc 3.4.6 上面就不会出现这样的警告。 如果加了-Werror之后,能不能单独忽略某种类型的警告? 就像上面的那种警告。 谢谢!

by GodPig - C/C++ - 2009-10-14 11:40:01 阅读(1052) 回复(2)

相关讨论

之前有人讨论了: http://bbs.chinaunix.net/thread-1275329-1-1.html 但是大家只是指出了原因, 并没有解决方案 原来的程序是英文的: typedef struct tag_tool_info{     char *description;     ....... } TOOL_INFO; static TOOL_INFO tool_info_list[]= {   { "file", ... },   { "edit", ... },   { "view", ... },   ... }; 这样编译没问...

by connet - C/C++ - 2008-11-26 14:52:03 阅读(1549) 回复(2)

Lucene 2.0以后API接口发生了不少的变化。其中比较重要的是fieldfield没了Keyword、UnIndexed、UnStored、Text这几个静态成员,只能用 field(String, String, Store, Index)构造函数生成实例 field类一共有5种构造函数: , org.apache.lucene.document.field.Store)]field ( String name, byte[] value, field.Store store) Create a stored field with binary value. field ( String name, Reader read...

by linxh - Java文档中心 - 2008-05-27 11:03:29 阅读(706) 回复(0)

我在LINUX下用GCC编译一个文件, 在文件中定义了这个变量 unsigned long const crc_32_tab[256]={ 0x00000000,0x77073096,0xee0e612c,0x990951ba,0x076dc419,0x706af48f,0xe963a535,0x9e6495a3 }; 为什么编译的时候有excess elements in scalar initializer 警告啊。 本来刚从NUCLUES转到LINUX下,觉得很多在ADS编译器下没错的,可是到了GCC编译器下就有问题。请教大家了

by sqq001 - C/C++ - 2007-04-20 10:59:07 阅读(6331) 回复(6)

AAL5 AAL5 SSCOP SD Nokia NBAP private MESSAGE (COMMON) 协议层次: NBAP SSCOP AAL5 R1 R2 ATM NB8 CNBAP VPI:2 VCI:56 CID:0 Id:14187092 Time:2009.07.20 21:11:47.798241004 AAL5 PDU AAL5 CPCS-PDU SD PDU INFO: 00 24 4A 7F 49 32 00 00 00 00 13 88 40 2A 18 00 01 C0 75 C0 00 00 45 13 08 02 00 04 80 40 0D 00 00 13 8F 40 07 34 00 00 00 00 00 12 01 0A 00 00 13 92 40 04 00 00 01 30 PL: 0...

by cjml_1982 - 网络技术文档中心 - 2009-07-20 21:46:59 阅读(1372) 回复(0)

今天发邮件到zy165.com的时候提示 Unknown host: [email]13333333333@zy165.com[/email] Unknown host: [email]13333333333@zy165.com[/email] 但是到ry165和gs165的邮件没有问题,nslookup 返回如下: Non-authoritative answer: Name: zy165.com.private Address: 202.106.195.30 Non-authoritative answer: Name: ry165.com.private Address: 202.106.195.30 Non-authoritative answer: Name: gs165.com.private ...

by love1y - 服务器应用 - 2007-07-09 11:56:29 阅读(2873) 回复(5)

AllocHandle: OUT OF private HANDLES! -- pid 00000650 Handles used so far 6399, Maximum handles = 17252, error = 0x107 02/21/2006 05:44:53 AM Unable to replicate with server all_internet_host: Unable to find path to server AllocHandle: OUT OF private HANDLES! -- pid 00000650 Handles used so far 6399, Maximum handles = 17252, error = 0x107 02/21/2006 05:46:09 AM Unable to retrieve activity trends ...

by kona - 服务器应用 - 2006-02-21 10:00:05 阅读(1444) 回复(0)

这是个什么错呀,虽然也可以网络PING 通,可是不能使用ftp了呀?

by yanchao - 其他UNIX - 2003-05-13 12:24:34 阅读(414) 回复(1)

This chapter looks at the inter-system communication components that occur in the embedded motion systems this book is focusing on. Serial lines Controller Area Network (CAN) Profibus Realtime ethernet (RTnet, EtherCat, ProfiNet...) Devicenet Inter-Integrated Circuit (I2C) Serial Peripheral Interface (SPI) Firewire Contents 1 Description 1.1 Factory buses 1.2 CPU buses 1.3 field ...

by bilbo0214 - 网络技术文档中心 - 2008-04-17 12:47:35 阅读(795) 回复(0)

假设值为 0xFF80 = ( 1111 1111 1000 0000 ) B15 ~ B0 [code] struct { unsigned char B8:1, B9:1, B10:1, B11:1, B12:1, B13:1, B14:1, B15:1, B0:1, B1:1, B2:1, B3:1, B4:1, B5:1, B6:1, B7:1; } BIT; 上面是正确的写法 我搞不懂为什么不是 struct { unsigned char B0:1, B1:1, B2:1, B3:1, B4:1, B5:1, B6:1, B7:1, B8:1, B9:1, B10:1, B11:1, B12:1, B13:1, B14:...

by shihyu - C/C++ - 2008-01-30 09:00:02 阅读(1313) 回复(1)