使用GCC编译WineMaker生成的MakeFile

时间:2016-08-28 04:20:32

标签: c++ c gcc makefile

我已经使用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

任何解决方案伙计们? 我已经阅读了这个问题的另一个主题,但我不明白真正的问题,我怀疑问题是另一个。

1 个答案:

答案 0 :(得分:0)

  

使用GCC编译由WineMaker生成的MakeFile

您无法使用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 manualhere is the GNU Make manual

投票将您的问题视为过于宽泛。建议阅读How do I ask a good question?