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 和 C++ 源文件的 nodejs 插件。但是,如果我修改“binding.gyp”目标/源以包含 .c 文件,则在 ./build 目录中生成的 Makefile 似乎无法识别 .c 扩展名。.cc 依赖项工作正常。有没有办法在 binding.gyp 文件中声明 C 依赖关系?