我使用的代码在下面的链接:C功能已被弃用
我定义如下
typedef struct {
char *name; /* User printable name of the function. */
Function *func; /* Function to call to do the job. */
char *doc; /* Documentation for this function. */
} COMMAND;
一个struct当我编译编译器显示这些警告的代码:
“功能已过时[-Wdeprecated-declarations]”
那么,如果我不能使用函数类型,应该更改哪种类型?
您介意创建[___MCVE___](http://stackoverflow.com/help/mcve)吗? –
你得到的*确切的错误*是什么? –
看看警告消息,它也会告诉你哪个函数已被弃用 –