handelC问题跪求教
时间:10-02
整理:3721RD
点击:
set clock = external "P1";
typedef enum
{
A,
B,
C = 43,
D
} En ;
extern "C++" void fun(En num)
{
}
错误:(E0336) Could not infer information about this object test.hcc Ln 12, Col 30-32
(E0336) Could not infer information about this object test.hcc Ln 12, Col 22-37
如果把extern "C++"去掉,没问题。如果把枚举类型改成结构体之类的都没问题。
小弟对handelC不熟,只是项目有所涉及,所以对handelC很多基础的都不懂,望哪位大虾帮帮忙,小弟在这跪谢了。被这问题快搞疯了
typedef enum
{
A,
B,
C = 43,
D
} En ;
extern "C++" void fun(En num)
{
}
错误:(E0336) Could not infer information about this object test.hcc Ln 12, Col 30-32
(E0336) Could not infer information about this object test.hcc Ln 12, Col 22-37
如果把extern "C++"去掉,没问题。如果把枚举类型改成结构体之类的都没问题。
小弟对handelC不熟,只是项目有所涉及,所以对handelC很多基础的都不懂,望哪位大虾帮帮忙,小弟在这跪谢了。被这问题快搞疯了
