c++ - 使用 GCC 编译 WineMaker 生成的 MakeFile

标签 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

各位有什么解决办法吗? 我已经阅读了有关此问题的另一个主题,但我不了解真正的问题,并且我怀疑问题是另一个问题。

最佳答案

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 manualhere is the GNU Make manual .

投票结束您的问题,因为问题太宽泛。推荐阅读How do I ask a good question?

关于c++ - 使用 GCC 编译 WineMaker 生成的 MakeFile,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39187967/

相关文章:

c++ - Gcc x64 函数调用

c++ - 为什么符号 malloc、__malloc 和 __libc_malloc 指向相同的代码地址?

c++ - SDL_DisplayFormatAlpha() 的 SDL 2.0 版本?

C++更改函数的变量参数

java - 执行时间 : Boost Multi-precision vs Java BigInteger

c++ - 一元 + on 指针

c - 写入文件时排除终止符

c - 编译动态库时消除对 MinGW 特定 DLL 的依赖

c - `-rdynamic` 到底做了什么,什么时候需要它?

c - 如何在 C 中显示浮点除法的实际结果?