编译器构造-开始使用C++和Spotify API

compiler construction - Getting started with C++ and Spotify API

本文关键字:C++ Spotify API 开始 编译器      更新时间:2023-10-16

我决定通过实际使用Spotifi的API来开始学习C++。

因此,我下载了适用于windows环境的适当文件,并设置MinGW使用它进行编译。

现在,一切就绪,我在Sublime2项目中加载Spotify examples文件夹并运行Build,但问题是我似乎无法通过以下错误:

c:/mingw/bin/../lib/gcc/mingw32/4.7.2/../../../../mingw32/bin/ld.exe:D:W0RKSoftwarespotify-examplesMakefile: file format not recognized; treating as linker script
c:/mingw/bin/../lib/gcc/mingw32/4.7.2/../../../../mingw32/bin/ld.exe:D:W0RKSoftwarespotify-examplesMakefile:1: syntax error
collect2.exe: error: ld returned 1 exit status
[Finished in 0.4s with exit code 1]

这是我的自定义卓越构建配置:

{
    "cmd": ["C:\MinGW\bin\mingw32-g++.exe", "-Wall", "-time", "--verbose", "$file", "-o", "$file_base_name"]
}

我是不是错过了构建过程中的任何步骤?

您正在尝试链接Makefile,但由于它不是对象文件,因此会失败。您需要将其从构建过程中排除。