'*' 标记 'ASM' 或 '__attribute__' 我有以下声明错误:预期 '=', '', ';',之前用C
FILE *fptr; FILE *optr;
在algo.h 我有main.c打开这些文件的主。 如果我将声明放在头文件中,我会得到上述错误。如果我把它放在main.c中,然后我得到这样
src\main.o:main.c:(.bss+0xc88): multiple definition of
rcount' src\new_algo.o:new_algo.c:(.bss+0xc88): first defined here src\main.o:main.c:(.bss+0xc8c): multiple definition of
康迪” 的src \ new_algo.o多发性定义错误:new_algo.c :(BSS + 0xc8c):这里首先定义
您是否包含stdio.h? – 2011-04-07 03:57:45
是的,在main.c和new_algo.c中 – Namratha 2011-04-07 03:59:48
@Namratha和包括algo.h之前是否包含stdio.h之前? – nos 2011-11-22 10:14:01