client程序的编译问题

一, 关于map_file

pulse/context.c  中的一个函数

pa_tagstruct *pa_tagstruct_command(pa_context *c, uint32_t command, uint32_t *tag) 

在编译连接后,无法使用,readelf 查看,属性为local,所以修改上述文件,增加该函数的定义,然后 make install

二,关于结构体的定义和别名

以pa_simple这个结构体为例子

struct pa_simple {
    pa_threaded_mainloop *mainloop;
    pa_context *context;
    pa_stream *stream;
    pa_stream_direction_t direction;

    const void *read_data;
    size_t read_index, read_length;

    int operation_success;
};

这段定义在simple.c中,而typedef定义别名在simple.h中

typedef struct pa_simple pa_simple;

包含了头文件,却不知道具体的结构定义,只是知道有个类型pa_simple

这样,编译就会有错误:

dereferencing pointer to incomplete type

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值