libsndfile Windows 7 [英] libsndfile Windows 7

查看:441
本文介绍了libsndfile Windows 7的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用MinGW在Windows 7机器上使用C编译程序。现在我不得不承认,我没有很多的C经验来开始,而这不是一个非常娴熟的Windows用户。

I'm trying to compile a program in C on a Windows 7 machine using MinGW. Now I have to admit I don't have a lot of C experience to begin with and this is compounded by not being a very adept Windows user.

该程序附带了一个make文件,但是由于我收到错误,它被卡住了:

The program came with a make file, but it is getting stuck because I get the error:


找不到-lsndfile

cannot find -lsndfile

我发现sndfile是一个用于阅读.wav文件的声卡。我从 http://www.mega-nerd.com/libsndfile 下载库,并运行设置可执行文件。这将把一些头文件和其他垃圾放在C盘上的程序文件夹中。

I found that sndfile is a sound library for reading .wav files and the like. I downloaded the library from http://www.mega-nerd.com/libsndfile and ran the setup executable it comes with. This put some header files and other junk in the Programs folder on C drive.

我将头文件复制到MinGW目录下的include文件夹中,这减少了很多早先的错误降到一个你看到上面。我想我需要把一个.dll文件放在某个地方,但不知道在哪里。

I copied the header files into the include folder under the MinGW directory, which reduced a lot of earlier errors down to one you see above. I think I need to put a .dll file somewhere, but not sure where.

如果需要,我可以提供更多的细节,因为我不太确定问题所在。

I can provide more detail if needed, since I'm not quite sure where the problem lies.

感谢您的帮助。

推荐答案

可链接库文件(.a,.lib或.dll)以及其他文件(默认使用MinGW)。

You have to put the linkable library files (either .a, .lib or .dll) along with the other ones (which come by default with MinGW).

这篇关于libsndfile Windows 7的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆