我已經從3GPP網站下載了AMR源代碼。
當我試圖編譯它與任何修改,我得到錯誤
無法確定架構;使typedefs.h適合您的平臺我得到的AMR源代碼的錯誤
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
尋找此文字typedefs.h和在這裏發佈周邊的宏 – James
嗨,詹姆斯,因爲評論中的文本無法格式化太多,所以我粘貼在上面。 – Suman