问题标签 [id3lib]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
144 浏览

c++ - 在 Xcode 中静态链接 id3lib 的问题

我正在尝试将 id3lib 静态链接到我的 XCode 项目。我在其他线程中找到了一些答案,建议将 .a 文件的完整路径添加为链接器标志。这可行,但会产生大量错误:

等等。再次,谷歌搜索表明问题可能是标准库的选择。因此,我尝试将 C++ 标准库字段从“编译器默认”切换到“libstdc++”(我仍然遇到大量错误)或“libc++”——而且我得到的错误更少,即:

我不知道如何解决这个问题。如果我将库完整路径作为链接器标志删除,一切似乎都正常,但库是动态链接的(这对我不起作用)。我在 Mac OS X 10.10 上;id3lib 是通过 homebrew 安装的(手动安装测试导致类似的结果)。

有人有线索吗?

谢谢,丹尼尔

0 投票
0 回答
106 浏览

c++ - 将 id3lib.dll 添加到 CMake 项目

id3lib.dll在 Windows C++ CMake 项目中使用时遇到问题。我在 C++ 方面有一些经验,但我从未尝试.dll在我的项目中包含使用文件。我还没有看到任何关于如何在项目中包含 dll 的 id3lib 文档。我已经看到了一些关于如何在 CMake 中包含 dll 的通用答案,但我无法使其工作。我收到此错误:

我在 CMake 中尝试过,但没有找到库:

0 投票
1 回答
246 浏览

c++ - file not found error when trying to include id3lib header

I downloaded id3lib and placed the directory in my main.cpp directory but both g++ and visual studio give file/directory not founds and "undefined" errors

Here is my main.cpp:

g++ main.cpp gives:

if I use "" instead of <>, i get this error:

0 投票
1 回答
120 浏览

c++ - 未定义的引用`ID3_Tag::ID3_Tag(char const*)`

我正在尝试id3lib在我的项目中使用来获取音频元数据,现在我的项目中只有这一行使用id3lib

我做了#include <id3/tag.h>,然后在我的项目中的某个地方

并且在尝试编译它时出现错误

我正在meson用作构建系统,我尝试添加id3lib作为依赖项meson.build但没有运气

我仍然收到错误

我在 Arch Linux 上,我确实id3lib通过pacman.