使用make获取错误

时间:2013-08-18 16:59:17

标签: c makefile automake

我是使用make文件和其他GNU make工具的新手。我正在研究这个名为axis2 / c的项目,该项目使用了automake工具链。我遇到了这个编译错误。

    Making all in description
    /bin/sh ../../../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../.. -I../../../include -I../../../src/core/engine -I../../../util/include -I../../../axiom/include -I../../../neethi/include  -D_LARGEFILE64_SOURCE -DAXIS2_GUTHTHILA_ENABLED  -DAXIS2_JSON_ENABLED -DAXIS2_SVR_MULTI_THREADED  -g -O2 -D_LARGEFILE64_SOURCE -ansi -Wall -Wno-implicit-function-declaration -g -D_GNU_SOURCE -DAXIS2_GUTHTHILA_ENABLED  -DAXIS2_JSON_ENABLED -DAXIS2_SVR_MULTI_THREADED -MT op.lo -MD -MP -MF .deps/op.Tpo -c -o op.lo op.c
    libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../../.. -I../../../include -I../../../src/core/engine -I../../../util/include -I../../../axiom/include -I../../../neethi/include -D_LARGEFILE64_SOURCE -DAXIS2_GUTHTHILA_ENABLED -DAXIS2_JSON_ENABLED -DAXIS2_SVR_MULTI_THREADED -g -O2 -D_LARGEFILE64_SOURCE -ansi -Wall -Wno-implicit-function-declaration -g -D_GNU_SOURCE -DAXIS2_GUTHTHILA_ENABLED -DAXIS2_JSON_ENABLED -DAXIS2_SVR_MULTI_THREADED -MT op.lo -MD -MP -MF .deps/op.Tpo -c op.c  -fno-common -DPIC -o .libs/op.o
    op.c: In function 'axis2_op_get_axis_specific_mep_const':
    op.c:783: error: 'AXIS2_MEP_URI_IN_OUT_WSDL2' undeclared (first use in this function)
    op.c:783: error: (Each undeclared identifier is reported only once
    op.c:783: error: for each function it appears in.)
    op.c:788: error: 'AXIS2_MEP_URI_IN_ONLY_WSDL2' undeclared (first use in this function)
    op.c:793: error: 'AXIS2_MEP_URI_IN_OPTIONAL_OUT_WSDL2' undeclared (first use in this function)
    op.c:798: error: 'AXIS2_MEP_URI_OUT_IN_WSDL2' undeclared (first use in this function)
    op.c:803: error: 'AXIS2_MEP_URI_OUT_ONLY_WSDL2' undeclared (first use in this function)
    op.c:808: error: 'AXIS2_MEP_URI_OUT_OPTIONAL_IN_WSDL2' undeclared (first use in this function)
    op.c:813: error: 'AXIS2_MEP_URI_ROBUST_IN_ONLY_WSDL2' undeclared (first use in this function)
    op.c:818: error: 'AXIS2_MEP_URI_ROBUST_OUT_ONLY_WSDL2' undeclared (first use in this function)
    make[4]: *** [op.lo] Error 1
    make[3]: *** [all-recursive] Error 1
    make[2]: *** [all-recursive] Error 1
    make[1]: *** [all-recursive] Error 1
    make: *** [all] Error 2

这些常量位于一个名为axis2_const.h的文件中,因此我进入了op.c并特别包含了(这是一个冗余步骤)。但是,我仍然遇到这个编译错误。

知道如何解决这个问题吗?

注意:如果我需要提供更多信息,请与我们联系。

0 个答案:

没有答案