2016-01-24 40 views
0

標題。在Windows上使用g ++編譯C++後得到__gxx_personality_v0錯誤

在成功編譯該程序:

#include <iostream> 

class test 
{ 
    public: 
    int Render() {return 4;} 
}; 

int main() 
{ 
    test b; 
    std::cout << b.Render() << std::endl; 
    return 0; 
} 

使用這個命令:

g++ .\src\test.cpp -lstdc++ 

產生的可執行產生錯誤消息(如轉述我翻譯):

Entry point for procedure __gxx_personality_v0 in library [path of executable] not found. 

有什麼建議麼?

+0

也許加入-lgcc_s會有幫助嗎? – nsilent22

+0

@ nsilent22 Nope,沒有幫助。 – redspah

+1

http://stackoverflow.com/questions/18668003/the-procedure-entry-point-gxx-personality-v0-could-not-be-located-in-the-dnyam? – nsilent22

回答

1

回答:將C:\ mingw \ bin中的libstdC++ 6.dll複製到可執行文件的文件夾中。