51Testing软件测试论坛

 找回密码
 (注-册)加入51Testing

QQ登录

只需一步,快速开始

微信登录,快人一步

手机号码,快捷登录

查看: 3080|回复: 1
打印 上一主题 下一主题

[求助] c++ test读入一个文件的symbols时报错,请教!

[复制链接]

该用户从未签到

跳转到指定楼层
1#
发表于 2007-5-10 16:56:13 | 只看该作者 回帖奖励 |正序浏览 |阅读模式
因为c++ test在windows下运行,因此目前编译器比较接近的就是g++了
所要测试的是一个UNIX下的程序,我从/usr/include下把所有头文件下载到本机,加入到dev-cpp的include目录下
然后读入一个文件,右键点击read symbold,但是报了以下错误:

麻烦有经验的同行指点一二,谢谢!

------------------------

Precompiling E:\Projects\ptcl\sett\source\08-ACCT\acctmain.c

Working directory: E:\Projects\ptcl\sett\source\08-ACCT

gcc.exe -xc E:\\Projects\\ptcl\\sett\\source\\08-ACCT\\acctmain.c -o E:\\Projects\\ptcl\\sett\\c++test\\ptcl_sett\\Product\\acctmain.c_0\\acctmain.o -c -g

In file included from C:/Dev-Cpp/bin/../lib/gcc/mingw32/3.4.2/../../../../include/sys/thread.h:38,

                 from C:/Dev-Cpp/bin/../lib/gcc/mingw32/3.4.2/../../../../include/sys/ptrace.h:28,

                 from C:/Dev-Cpp/bin/../lib/gcc/mingw32/3.4.2/../../../../include/sys/proc.h:48,

                 from C:/Dev-Cpp/bin/../lib/gcc/mingw32/3.4.2/../../../../include/sys/pri.h:43,

                 from C:/Dev-Cpp/bin/../lib/gcc/mingw32/3.4.2/../../../../include/sys/sched.h:38,

                 from C:/Dev-Cpp/bin/../lib/gcc/mingw32/3.4.2/../../../../include/sched.h:51,

                 from C:/Dev-Cpp/bin/../lib/gcc/mingw32/3.4.2/../../../../include/pthread.h:50,

                 from E:\Projects\ptcl\sett\source\08-ACCT\/acctmain.h:26,

                 from E:\Projects\ptcl\sett\source\08-ACCT\acctmain.c:20:

C:/Dev-Cpp/bin/../lib/gcc/mingw32/3.4.2/../../../../include/sys/var.h:122: error: syntax error before "__cptr64"

C:/Dev-Cpp/bin/../lib/gcc/mingw32/3.4.2/../../../../include/sys/var.h:124: error: syntax error before "ve_file"

C:/Dev-Cpp/bin/../lib/gcc/mingw32/3.4.2/../../../../include/sys/var.h:126: error: syntax error before "ve_proc"

C:/Dev-Cpp/bin/../lib/gcc/mingw32/3.4.2/../../../../include/sys/var.h:129: error: syntax error before "ve_thread"

C:/Dev-Cpp/bin/../lib/gcc/mingw32/3.4.2/../../../../include/sys/var.h:130: error: syntax error before "vb_proc"

C:/Dev-Cpp/bin/../lib/gcc/mingw32/3.4.2/../../../../include/sys/var.h:131: error: syntax error before "vb_thread"

C:/Dev-Cpp/bin/../lib/gcc/mingw32/3.4.2/../../../../include/sys/var.h:146: error: syntax error before '}' token

C:/Dev-Cpp/bin/../lib/gcc/mingw32/3.4.2/../../../../include/sys/var.h:205: error: syntax error before "__cptr64"

C:/Dev-Cpp/bin/../lib/gcc/mingw32/3.4.2/../../../../include/sys/var.h:209: error: conflicting types for 'v_file'

C:/Dev-Cpp/bin/../lib/gcc/mingw32/3.4.2/../../../../include/sys/var.h:123: error: previous declaration of 'v_file' was here

C:/Dev-Cpp/bin/../lib/gcc/mingw32/3.4.2/../../../../include/sys/var.h:211: error: syntax error before "__cptr64"

C:/Dev-Cpp/bin/../lib/gcc/mingw32/3.4.2/../../../../include/sys/var.h:215: error: conflicting types for 'v_proc'

C:/Dev-Cpp/bin/../lib/gcc/mingw32/3.4.2/../../../../include/sys/var.h:125: error: previous declaration of 'v_proc' was here

C:/Dev-Cpp/bin/../lib/gcc/mingw32/3.4.2/../../../../include/sys/var.h:217: error: syntax error before "__cptr64"

C:/Dev-Cpp/bin/../lib/gcc/mingw32/3.4.2/../../../../include/sys/var.h:221: error: conflicting types for 'v_clist'

C:/Dev-Cpp/bin/../lib/gcc/mingw32/3.4.2/../../../../include/sys/var.h:127: error: previous declaration of 'v_clist' was here

C:/Dev-Cpp/bin/../lib/gcc/mingw32/3.4.2/../../../../include/sys/var.h:224: error: conflicting types for 'v_thread'

C:/Dev-Cpp/bin/../lib/gcc/mingw32/3.4.2/../../../../include/sys/var.h:128: error: previous declaration of 'v_thread' was here

C:/Dev-Cpp/bin/../lib/gcc/mingw32/3.4.2/../../../../include/sys/var.h:226: error: syntax error before "__cptr64"

C:/Dev-Cpp/bin/../lib/gcc/mingw32/3.4.2/../../../../include/sys/var.h:229: error: syntax error before "__cptr64"

C:/Dev-Cpp/bin/../lib/gcc/mingw32/3.4.2/../../../../include/sys/var.h:232: error: syntax error before "__cptr64"

C:/Dev-Cpp/bin/../lib/gcc/mingw32/3.4.2/../../../../include/sys/var.h:237: error: conflicting types for 'v_ncpus'

C:/Dev-Cpp/bin/../lib/gcc/mingw32/3.4.2/../../../../include/sys/var.h:132: error: previous declaration of 'v_ncpus' was here

C:/Dev-Cpp/bin/../lib/gcc/mingw32/3.4.2/../../../../include/sys/var.h:241: error: conflicting types for 'v_ncpus_cfg'

C:/Dev-Cpp/bin/../lib/gcc/mingw32/3.4.2/../../../../include/sys/var.h:133: error: previous declaration of 'v_ncpus_cfg' was here

C:/Dev-Cpp/bin/../lib/gcc/mingw32/3.4.2/../../../../include/sys/var.h:245: error: conflicting types for 'v_fullcore'

C:/Dev-Cpp/bin/../lib/gcc/mingw32/3.4.2/../../../../include/sys/var.h:134: error: previous declaration of 'v_fullcore' was here

C:/Dev-Cpp/bin/../lib/gcc/mingw32/3.4.2/../../../../include/sys/var.h:249: error: conflicting types for 'v_initlvl'

C:/Dev-Cpp/bin/../lib/gcc/mingw32/3.4.2/../../../../include/sys/var.h:135: error: previous declaration of 'v_initlvl' was here

C:/Dev-Cpp/bin/../lib/gcc/mingw32/3.4.2/../../../../include/sys/var.h:258: error: conflicting types for 'v_coreformat'

C:/Dev-Cpp/bin/../lib/gcc/mingw32/3.4.2/../../../../include/sys/var.h:136: error: previous declaration of 'v_coreformat' was here

C:/Dev-Cpp/bin/../lib/gcc/mingw32/3.4.2/../../../../include/sys/var.h:262: error: conflicting types for 'v_xmgc'

C:/Dev-Cpp/bin/../lib/gcc/mingw32/3.4.2/../../../../include/sys/var.h:137: error: previous declaration of 'v_xmgc' was here

C:/Dev-Cpp/bin/../lib/gcc/mingw32/3.4.2/../../../../include/sys/var.h:266: error: conflicting types for 'v_cpuguard'

C:/Dev-Cpp/bin/../lib/gcc/mingw32/3.4.2/../../../../include/sys/var.h:138: error: previous declaration of 'v_cpuguard' was here

C:/Dev-Cpp/bin/../lib/gcc/mingw32/3.4.2/../../../../include/sys/var.h:270: error: conflicting types for 'v_ncargs'

C:/Dev-Cpp/bin/../lib/gcc/mingw32/3.4.2/../../../../include/sys/var.h:139: error: previous declaration of 'v_ncargs' was here

C:/Dev-Cpp/bin/../lib/gcc/mingw32/3.4.2/../../../../include/sys/var.h:274: error: conflicting types for 'v_pre520tune'

C:/Dev-Cpp/bin/../lib/gcc/mingw32/3.4.2/../../../../include/sys/var.h:140: error: previous declaration of 'v_pre520tune' was here

C:/Dev-Cpp/bin/../lib/gcc/mingw32/3.4.2/../../../../include/sys/var.h:278: error: conflicting types for 'v_hardstack'

C:/Dev-Cpp/bin/../lib/gcc/mingw32/3.4.2/../../../../include/sys/var.h:141: error: previous declaration of 'v_hardstack' was here

C:/Dev-Cpp/bin/../lib/gcc/mingw32/3.4.2/../../../../include/sys/var.h:282: error: conflicting types for 'v_xmdbg_segs'

C:/Dev-Cpp/bin/../lib/gcc/mingw32/3.4.2/../../../../include/sys/var.h:142: error: previous declaration of 'v_xmdbg_segs' was here

C:/Dev-Cpp/bin/../lib/gcc/mingw32/3.4.2/../../../../include/sys/var.h:286: error: conflicting types for 'v_max_logname'

C:/Dev-Cpp/bin/../lib/gcc/mingw32/3.4.2/../../../../include/sys/var.h:143: error: previous declaration of 'v_max_logname' was here

C:/Dev-Cpp/bin/../lib/gcc/mingw32/3.4.2/../../../../include/sys/var.h:290: error: conflicting types for 'v_num_xmfrecs'

C:/Dev-Cpp/bin/../lib/gcc/mingw32/3.4.2/../../../../include/sys/var.h:144: error: previous declaration of 'v_num_xmfrecs' was here

C:/Dev-Cpp/bin/../lib/gcc/mingw32/3.4.2/../../../../include/sys/var.h:293: error: conflicting types for 'v_sed_config'

C:/Dev-Cpp/bin/../lib/gcc/mingw32/3.4.2/../../../../include/sys/var.h:145: error: previous declaration of 'v_sed_config' was here

C:/Dev-Cpp/bin/../lib/gcc/mingw32/3.4.2/../../../../include/sys/var.h:294: error: syntax error before '}' token

C:/Dev-Cpp/bin/../lib/gcc/mingw32/3.4.2/../../../../include/sys/var.h:295: error: syntax error before '}' token
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏
回复

使用道具 举报

该用户从未签到

2#
发表于 2007-5-15 13:05:45 | 只看该作者
找个身边有经验的C++程序员帮你看一下,这样更快一些,我从现象上看代码内部语法均有一些错误码,还是要看到具体的代码
回复 支持 反对

使用道具 举报

本版积分规则

关闭

站长推荐上一条 /1 下一条

小黑屋|手机版|Archiver|51Testing软件测试网 ( 沪ICP备05003035号 关于我们

GMT+8, 2024-11-27 10:41 , Processed in 0.063949 second(s), 26 queries .

Powered by Discuz! X3.2

© 2001-2024 Comsenz Inc.

快速回复 返回顶部 返回列表