|
因为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 |
|