廃止されました: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;
のような構造体を定義した:
"機能は推奨されていません[-Wdeprecated-declarations]
機能タイプを使用できない場合、どのタイプを変更する必要がありますか?
typedef int Function() __attribute__ ((deprecated));
ちょうど使用します:
typedef struct {
char *name; /* User printable name of the function. */
int (*func)(); /* Function to call to do the job. */
char *doc; /* Documentation for this function. */
} COMMAND;
あなたは[___MCVE___](http://stackoverflow.com/help/mcve)を作成しても構いませんか? –
あなたが得た*完全な正確なエラーは何ですか? –
警告メッセージを見て、それはまた、廃止された機能を教えてくれるでしょう –