开发者

How to give the path for the associated header files in alchemy?

开发者 https://www.devze.com 2023-02-03 08:12 出处:网络
I am converting a speexdecoder code to C in alchemy. The problem is that i am importing a header file #include <spe开发者_如何学编程ex/speex.h>. Alchemy gcc gives an error that speex.h not found

I am converting a speexdecoder code to C in alchemy. The problem is that i am importing a header file #include <spe开发者_如何学编程ex/speex.h>. Alchemy gcc gives an error that speex.h not found.

I have placed the speex directory where my C code is.


If the folder is local to your source, you shouldn't be using brackets (which tells the compiler to look for the sources in the standard system folders). You should be using quotes:

#include "speex/speex.h"

Note that this isn't anything peculiar to Alchemy-- regular gcc works the same way.

0

精彩评论

暂无评论...
验证码 换一张
取 消