我有一些返回std::function的C++代码。我想从一些C代码中调用它。这可能吗?例如,我有以下代码:typedefstd::functionAdderFunction;AdderFunctionmakeAdder(intamount){return[amount](intn){returnn+amount;};}extern"C"{AdderFunctionmakeCAdder(intamount){returnmakeAdder(amount);}}使用clang++-std=c++11test.cpp会导致以下警告:'makeCAdder'hasC-linkagespeci