我已经使用 WineMaker 转换了 SLN(Visual Studio 14 项目)文件,现在我有了 Makefile(WineMaker 不会生成任何输出错误),但 GCC 生成了此错误:
gcc: warning: Makefile: linker input file unused because linking not done
这是 MakeFile 源代码: Pastebin pasted MakeFile source
这是 SLN 来源:Pastebin Pasted SLN source
各位有什么解决办法吗? 我已经阅读了有关此问题的另一个主题,但我不了解真正的问题,并且我怀疑问题是另一个问题。
最佳答案
Compile MakeFile generated by WineMaker with GCC
您无法使用 GCC 或任何其他编译器编译 makefile。您已尝试过 做类似的事情:
gcc -c main.c Makefile
这是没有意义的,其结果正是:
gcc: warning: Makefile: linker input file unused because linking not done
看来你根本不了解GCC和GNU Make的使用, Stackoverflow 并没有解决这个问题的目的。 Here is a fairly sound beginner's tutorial 。 如需权威文档,here is the GCC manual和 here is the GNU Make manual .
投票结束您的问题,因为问题太宽泛。推荐阅读How do I ask a good question?
关于c++ - 使用 GCC 编译 WineMaker 生成的 MakeFile,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39187967/