C++ 如何建设东方图书馆

C++ 如何建设东方图书馆,c++,linux,eastl,C++,Linux,Eastl,最近我尝试在linux 3.10 x86_64中构建eastl库,但失败了 do在此处有“编译源代码”网页: 按照说明获取libEASTL.a,ar-t libEASTL.a获取: allocator_eastl.cpp.o assert.cpp.o fixed_pool.cpp.o hashtable.cpp.o intrusive_list.cpp.o numeric_limits.cpp.o red_black_tree.cpp.o string.cpp.o thread_suppor

最近我尝试在linux 3.10 x86_64中构建eastl库,但失败了

do在此处有“编译源代码”网页:

按照说明获取libEASTL.a,ar-t libEASTL.a获取:

allocator_eastl.cpp.o
assert.cpp.o
fixed_pool.cpp.o
hashtable.cpp.o
intrusive_list.cpp.o
numeric_limits.cpp.o
red_black_tree.cpp.o
string.cpp.o
thread_support.cpp.o
然后是一个微小的测试源:

#include <EASTL/vector.h>
#include <EASTL/fixed_vector.h>
int main()
{
    eastl::fixed_vector<int,10,true> v ;
    int iarr[10]  ;
    for(int idx=0;idx<10;idx++){
        iarr[idx] = idx + 1 ;
        v.push_back( iarr[idx] ) ;
    }
}
所以剩下的唯一问题是:我需要正确地编写这个新函数!!!! 要做到这一点,任何文件都能给我线索

编辑2:

根据本网站信息:


然后工作就完成了。

但建议在原网站上使用此>>

试试#include@Tony,#include仍然存在“未定义引用”问题,
void* operator new[](size_t size, const char* pName, 
int flags, unsigned debugFlags, const char* file, int line)
{
    ;
}
void* operator new[](size_t size, const char* pName, int flags, unsigned     debugFlags, const char* file, int line) 
{
    return malloc(size);
}  

void* operator new[](size_t size, size_t alignment, size_t alignmentOffset, const char* pName, int flags, unsigned debugFlags, const char* file, int line) 
{
    return malloc(size);
}  
void* operator new[](size_t size, const char* name, int flags, unsigned debugFlags, const char* file, int line)
{
    return new uint8_t[size];
}