我收到了AMR源代码的make错误

时间:2011-09-08 12:04:36

标签: cygwin cpu-architecture computer-architecture

我已从3GPP网站下载了AMR源代码 当我试图编译它没有任何修改,我收到错误
无法确定架构;使typedefs.h适应您的平台

D:\AMR_3Gpp\26073-800\c-code> make
rm -f *.o core
rm -f *.a encoder decoder
gcc -c -Wall -pedantic-errors -I. -O3 -DWMOPS=0 -DVAD1 agc.c
In file included from typedef.h:50,
                 from agc.h:24,
                 from agc.c:20:
typedefs.h:179:2: error: #error "can't determine architecture; adapt typedefs.h to your platform"
In file included from agc.c:31:
basic_op.h:33: warning: conflicting types for built-in function `round'
make: *** [agc.o] Error 1
D:\AMR_3Gpp\26073-800\c-code>

我在windows机器上使用cygwin。因此,如果有人知道或遇到此错误“无法确定架构;将typedefs.h适应您的平台”。请帮我解决一下。

谢谢&问候,
SSuman185


/*
 ********* Check current platform
 */
#if defined(__MSDOS__)
#define PC
#define PLATFORM "PC"
#define LSBFIRST
#elif defined(__osf__)
#define OSF
#define PLATFORM "OSF"
#define LSBFIRST
#elif defined(__sun__) || defined(__sun)
#define SUN
#define PLATFORM "SUN"
#undef LSBFIRST
#elif defined(linux) && defined(i386)
#define PC
#define PLATFORM "PC"
#define LSBFIRST
#else
#error "can't determine architecture; adapt typedefs.h to your platform"
#endif

1 个答案:

答案 0 :(得分:1)

看起来这个项目从未移植到CYGWIN的gcc环境。

无论

  1. 从项目中了解它们如何(或者是否)支持任何Windows C编译器并使用它。根据他们的网站,看起来他们支持MinGW - http://www.mingw.org/
  2. 自己移植到CYGWIN GCC - 开始:“将typedefs.h改编到您的平台”
相关问题