我刚学二天。
include一个.h文件出现如下错误。
d:\test\api.h(28) : error C2146: syntax error : missing ';' before identifier 'cmpp_recv'
d:\test\api.h(28) : error C2501: 'dpl_status_t' : missing storage-class or type specifiers
d:\test\api.h(28) : fatal error C1004: unexpected end of file found
这个api还有一个dll文件,我想问是不是没引用api.dll文件有关,这个接口是移动给的不能有错。
怎样引用dll文件帮我呀各们师兄
谢谢

解决方案 »

  1.   

    不是,这里提示的错误
    1:你在'cmpp_recv'缺少了;
    2: dpl_status_t这句定义有问题
    3:你没有包含stdafx.h
      

  2.   

    api.h
    是你自定义的?
    楼上的兄弟已经给你指明了方向
      

  3.   

    谢谢
    api不是我定义的是移动给的我想做一个网关测试的程序,
    它们的api是以c写的我想问在vc里能不能正常引用c 写的dllto leafdown(长安叶落) 
    1:你在'cmpp_recv'缺少了;
    2: dpl_status_t这句定义有问题
    3:你没有包含stdafx.h
    CMPP_API dpl_status_t cmpp_recv(conn_desc *conn,cmppe_packet *cp,dpl_uint8_t is_break);
    这是出错那句这是移动给的接口我想应该没什么问题,是我引用dll不对,
    请各位指教.