我想在Windows 7 x64上的AVR UC3C0512C IAR工作臺v6.3.3上編譯CppUtest庫,但是當我編譯它時,它說std名稱空間是沒有定義的。IAR工作臺不會找到std :: string
這裏是剪斷的代碼,我得到的第一個錯誤,該文件是SimpleString.h:
#if CPPUTEST_USE_STD_CPP_LIB
#include <string>
#include <stdint.h>
SimpleString StringFrom(const std::string& other);
最後一行包含的std :: string,這給我帶來了190個錯誤,所有與此有關。該消息是:
Error[Pe276]: name followed by "::" must be a class or namespace name
C:\COM\SRC\cpputest35\include\CppUTest\SimpleString.h 143
我已經使用線下嘗試,但它並不能幫助:
using namespace std;
在庫配置我選擇普通DLIB,我也試圖與全DLIB但IAR無法看到std庫
有什麼想法嗎?
AVR由GCC完全支持ISO C++,而不是EC++支持。 EC++很大程度上已經過時。 – Clifford
我們正在將項目遷移到GCC,但這不是一件容易的事。 –