在Linux中编译OpenMCU(Fedora12)

时间:2011-06-21 10:11:54

标签: gcc

我想在fedora 12中编译OpenMCU。由于orignal项目是用VC ++编译的,因此它与gcc有一些兼容性问题。 我使用的是gcc 4.4.4和febora 12。 错误显示出这样的情况。

In file included from mcu.h:84,
             from main.cxx:56:
filemembers.h:123: error: ISO C++ forbids declaration of ‘deque’ with no type
filemembers.h:123: error: typedef name may not be a nested-name-specifier
filemembers.h:123: error: expected ‘;’ before ‘<’ token
filemembers.h:124: error: ISO C++ forbids declaration of ‘FilenameList’ with no type
filemembers.h:124: error: expected ‘,’ or ‘...’ before ‘&’ token
In file included from mcu.h:84,
             from main.cxx:56:
filemembers.h:149: error: ‘FilenameList’ does not name a type
make: *** [obj_linux_x86_r/main.o] Error 1

当检查该特定文件的源代码时,它就像这样......

class ConferenceFileMember : public ConferenceMember
{
    PCLASSINFO(ConferenceFileMember, ConferenceMember);
    public:
    ConferenceFileMember(Conference * conference, const PFilePath & _fn, PFile::OpenMode mode);

    *typedef std::deque<PFilePath> FilenameList;                 //Line 123..*
    ConferenceFileMember(Conference * conference, const FilenameList & _fns, PFile::OpenMode mode);

    ~ConferenceFileMember();

    void Unlisten();

似乎是一个简单的语法问题。在这方面有人可以帮助我吗?

提前完成..

1 个答案:

答案 0 :(得分:0)

看起来没有定义std :: deque。你有#include <deque>吗?