g++ MinGW 컴파일러를 사용하여 Hyperion1.2를 컴파일할 수 없습니다.

g++ MinGW 컴파일러를 사용하여 Hyperion1.2를 컴파일할 수 없습니다.

아 나 컴파일 하려고 하는데하이페리온 1.2그리고 오류가 발생합니다. 이것은 내가 사용하는 명령입니다:

x86_64-w64-mingw32-g++ Hyperion-1.2/Src/Crypter/hyperion.cpp -o Hyperion.exe

내가 받은 오류:

/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

답변1

mingw-64를 설치한 후 다음 명령을 실행합니다.

i686-w64-mingw32-c++  Hyperion-1.2/Src/Crypter/*.cpp -o hyperion.exe 

MingW를 사용하여 Hyperion을 컴파일하는 데 필요한 명령입니다. 당신이 사용하려는 명령은 나에게도 작동하지 않습니다. 있습니다.

답변2

컴파일을 수행하기 전에 패키지 mingw-w64(예:)를 설치해야 합니다.aptitude install mingw-w64

관련 정보