redspah
redspah

Reputation: 277

Getting __gxx_personality_v0 error after compiling C++ with g++ on Windows

Title.

After successfully compiling this program:

#include <iostream>

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

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

With this command:

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

The executable produced produces error message (paraphrased as I'm translating):

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

Any suggestions?

Upvotes: 0

Views: 904

Answers (1)

redspah
redspah

Reputation: 277

Answer: Copy libstdc++6.dll from C:\mingw\bin into the executable's folder.

Upvotes: 1

Related Questions