首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >无法用g++ MinGW编译器编译Hyperion1.2

无法用g++ MinGW编译器编译Hyperion1.2
EN

Unix & Linux用户
提问于 2016-03-20 22:32:17
回答 2查看 3.5K关注 0票数 -1

嘿,我所做的一切都是为了编译Hyperion 1.2并得到错误。下面是我使用的命令:

代码语言:javascript
复制
x86_64-w64-mingw32-g++ Hyperion-1.2/Src/Crypter/hyperion.cpp -o Hyperion.exe

我所犯的错误:

代码语言:javascript
复制
/tmp/ccKr1FvG.o:hyperion.cpp:(.text+0x4b1): undefined reference to `hyperion::OstreamLog::OstreamLog(bool)'
/tmp/ccKr1FvG.o:hyperion.cpp:(.text+0x550): undefined reference to `hyperion::OstreamLog::operator<<(std::ostream& (*)(std::ostream&))'
/tmp/ccKr1FvG.o:hyperion.cpp:(.text+0x563): undefined reference to `hyperion::OstreamLog::operator<<(char const*)'
/tmp/ccKr1FvG.o:hyperion.cpp:(.text+0x572): undefined reference to `hyperion::OstreamLog::operator<<(std::ostream& (*)(std::ostream&))'
/tmp/ccKr1FvG.o:hyperion.cpp:(.text+0x585): undefined reference to `hyperion::OstreamLog::operator<<(char const*)'
/tmp/ccKr1FvG.o:hyperion.cpp:(.text+0x594): undefined reference to `hyperion::OstreamLog::operator<<(std::ostream& (*)(std::ostream&))'
/tmp/ccKr1FvG.o:hyperion.cpp:(.text+0x5a7): undefined reference to `hyperion::OstreamLog::operator<<(char const*)'
/tmp/ccKr1FvG.o:hyperion.cpp:(.text+0x5b6): undefined reference to `hyperion::OstreamLog::operator<<(std::ostream& (*)(std::ostream&))'
/tmp/ccKr1FvG.o:hyperion.cpp:(.text+0x5c9): undefined reference to `hyperion::OstreamLog::operator<<(std::ostream& (*)(std::ostream&))'
/tmp/ccKr1FvG.o:hyperion.cpp:(.text+0x5e8): undefined reference to `hyperion::FileInMemory::FileInMemory(char const*)'
/tmp/ccKr1FvG.o:hyperion.cpp:(.text+0x62a): undefined reference to `hyperion::PE32Analysis::PE32Analysis(hyperion::FileInMemory*)'
/tmp/ccKr1FvG.o:hyperion.cpp:(.text+0x670): undefined reference to `hyperion::FileInMemory::~FileInMemory()'
/tmp/ccKr1FvG.o:hyperion.cpp:(.text+0x695): undefined reference to `hyperion::OstreamLog::operator<<(std::ostream& (*)(std::ostream&))'
/tmp/ccKr1FvG.o:hyperion.cpp:(.text+0x6a8): undefined reference to `hyperion::OstreamLog::operator<<(char const*)'
/tmp/ccKr1FvG.o:hyperion.cpp:(.text+0x6b7): undefined reference to `hyperion::OstreamLog::operator<<(std::ostream& (*)(std::ostream&))'
/tmp/ccKr1FvG.o:hyperion.cpp:(.text+0x6ca): undefined reference to `hyperion::OstreamLog::operator<<(char const*)'
/tmp/ccKr1FvG.o:hyperion.cpp:(.text+0x6d9): undefined reference to `hyperion::OstreamLog::operator<<(std::ostream& (*)(std::ostream&))'
/tmp/ccKr1FvG.o:hyperion.cpp:(.text+0x6ec): undefined reference to `hyperion::OstreamLog::operator<<(char const*)'
/tmp/ccKr1FvG.o:hyperion.cpp:(.text+0x6fb): undefined reference to `hyperion::OstreamLog::operator<<(std::ostream& (*)(std::ostream&))'
/tmp/ccKr1FvG.o:hyperion.cpp:(.text+0x70e): undefined reference to `hyperion::OstreamLog::operator<<(std::ostream& (*)(std::ostream&))'
/tmp/ccKr1FvG.o:hyperion.cpp:(.text+0x72c): undefined reference to `hyperion::createFasmInfileArray(hyperion::FileInMemory*, unsigned int, unsigned int)'
/tmp/ccKr1FvG.o:hyperion.cpp:(.text+0x763): undefined reference to `hyperion::FileInMemory::~FileInMemory()'
/tmp/ccKr1FvG.o:hyperion.cpp:(.text+0x798): undefined reference to `hyperion::createFasmInclude(char const*, char const*, unsigned int)'
/tmp/ccKr1FvG.o:hyperion.cpp:(.text+0x7cf): undefined reference to `hyperion::FileInMemory::~FileInMemory()'
/tmp/ccKr1FvG.o:hyperion.cpp:(.text+0x804): undefined reference to `hyperion::createFasmInclude(char const*, char const*, unsigned int)'
/tmp/ccKr1FvG.o:hyperion.cpp:(.text+0x83b): undefined reference to `hyperion::FileInMemory::~FileInMemory()'
/tmp/ccKr1FvG.o:hyperion.cpp:(.text+0x860): undefined reference to `hyperion::createFasmKeySize(unsigned int, unsigned int)'
/tmp/ccKr1FvG.o:hyperion.cpp:(.text+0x897): undefined reference to `hyperion::FileInMemory::~FileInMemory()'
/tmp/ccKr1FvG.o:hyperion.cpp:(.text+0x8b7): undefined reference to `hyperion::createFasmLogfileInc(bool)'
/tmp/ccKr1FvG.o:hyperion.cpp:(.text+0x8ee): undefined reference to `hyperion::FileInMemory::~FileInMemory()'
/tmp/ccKr1FvG.o:hyperion.cpp:(.text+0x975): undefined reference to `hyperion::FileInMemory::~FileInMemory()'
/tmp/ccKr1FvG.o:hyperion.cpp:(.text+0x99a): undefined reference to `hyperion::OstreamLog::operator<<(char const*)'
/tmp/ccKr1FvG.o:hyperion.cpp:(.text+0x9a9): undefined reference to `hyperion::OstreamLog::operator<<(std::ostream& (*)(std::ostream&))'
/tmp/ccKr1FvG.o:hyperion.cpp:(.text+0x9bc): undefined reference to `hyperion::OstreamLog::operator<<(char const*)'
/tmp/ccKr1FvG.o:hyperion.cpp:(.text+0x9cb): undefined reference to `hyperion::OstreamLog::operator<<(std::ostream& (*)(std::ostream&))'
/tmp/ccKr1FvG.o:hyperion.cpp:(.text+0x9de): undefined reference to `hyperion::OstreamLog::operator<<(char const*)'
/tmp/ccKr1FvG.o:hyperion.cpp:(.text+0x9ed): undefined reference to `hyperion::OstreamLog::operator<<(std::ostream& (*)(std::ostream&))'
/tmp/ccKr1FvG.o:hyperion.cpp:(.text+0xa00): undefined reference to `hyperion::OstreamLog::operator<<(std::ostream& (*)(std::ostream&))'
/tmp/ccKr1FvG.o:hyperion.cpp:(.text+0xc04): undefined reference to `hyperion::OstreamLog::operator<<(char const*)'
/tmp/ccKr1FvG.o:hyperion.cpp:(.text+0xc13): undefined reference to `hyperion::OstreamLog::operator<<(std::ostream& (*)(std::ostream&))'
/tmp/ccKr1FvG.o:hyperion.cpp:(.text+0xc26): undefined reference to `hyperion::OstreamLog::operator<<(char const*)'
/tmp/ccKr1FvG.o:hyperion.cpp:(.text+0xc38): undefined reference to `hyperion::OstreamLog::operator<<(char const*)'
/tmp/ccKr1FvG.o:hyperion.cpp:(.text+0xc47): undefined reference to `hyperion::OstreamLog::operator<<(std::ostream& (*)(std::ostream&))'
/tmp/ccKr1FvG.o:hyperion.cpp:(.text+0xc5a): undefined reference to `hyperion::OstreamLog::operator<<(char const*)'
/tmp/ccKr1FvG.o:hyperion.cpp:(.text+0xc6c): undefined reference to `hyperion::OstreamLog::operator<<(char const*)'
/tmp/ccKr1FvG.o:hyperion.cpp:(.text+0xc7b): undefined reference to `hyperion::OstreamLog::operator<<(std::ostream& (*)(std::ostream&))'
/tmp/ccKr1FvG.o:hyperion.cpp:(.text+0xd90): undefined reference to `hyperion::FileInMemory::~FileInMemory()'
/tmp/ccKr1FvG.o:hyperion.cpp:(.text+0xece): undefined reference to `hyperion::FileInMemory::~FileInMemory()'
/tmp/ccKr1FvG.o:hyperion.cpp:(.text+0xfc0): undefined reference to `hyperion::OstreamLog::OstreamLog(bool)'
collect2: error: ld returned 1 exit status
EN

回答 2

Unix & Linux用户

发布于 2018-04-16 00:02:30

安装mingw-64之后,运行以下命令:

代码语言:javascript
复制
i686-w64-mingw32-c++  Hyperion-1.2/Src/Crypter/*.cpp -o hyperion.exe 

这是用MingW编译Hyperion所需的命令。您试图使用的命令也对我无效。上面提到了。

票数 1
EN

Unix & Linux用户

发布于 2016-06-21 01:12:32

您需要首先安装软件包mingw-w64 (例如。( aptitude install mingw-w64)执行编译之前。

票数 0
EN
页面原文内容由Unix & Linux提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://unix.stackexchange.com/questions/271157

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档