Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我已将 c 文件添加到 gtkmm 项目目标,但由于它是 c 文件,因此无法为其创建对象。
那么我应该怎么做才能将它集成到我的项目中。
是否存在链接错误?或者您可以与我们分享任何错误消息?
看看http://www.parashift.com/c++-faq-lite/mixing-c-and-cpp.html
您是否对所有文件都使用 C++ 编译器?或者您是否使用不同的编译器编译 c 和 c++ 文件?
如果一切都失败了,将 c 文件的扩展名更改为 cpp 值得一试。