GCC And Wx Error

Hi,
Sorry, If this question is not appropriate to this section. Admin, kindly move this qeustion.
I recently changed my tdm-gcc-5.1.0-3 to tdm-gcc-9.2.0, 32 bit. Before changing the gcc my software was working fine, compiled without any problem. But today I installed gcc 9.2.0 and I can't compile my sofware anymore. I am getting an error -

C:/TDM-GCC-32/bin/../lib/gcc/mingw32/9.2.0/../../../../mingw32/bin/ld.exe: C:/TDM-GCC-32/bin/../lib/gcc/mingw32/9.2.0\libstdc++.a(bad_alloc.o):bad_alloc.cc:(.text+0x10): multiple definition of `std::bad_alloc::~bad_alloc()'; C:/TDM-GCC-32/bin/../lib/gcc/mingw32/9.2.0/libstdc++.dll.a(d005218.o):(.text+0x0): first defined here
C:/TDM-GCC-32/bin/../lib/gcc/mingw32/9.2.0/../../../../mingw32/bin/ld.exe: C:/TDM-GCC-32/bin/../lib/gcc/mingw32/9.2.0\libstdc++.a(eh_exception.o):eh_exception.cc:(.text+0x0): multiple definition of `std::exception::~exception()'; C:/TDM-GCC-32/bin/../lib/gcc/mingw32/9.2.0/libstdc++.dll.a(d005266.o):(.text+0x0): first defined here
collect2.exe: error: ld returned 1 exit status

Is this related to wxWidgets or GCC? I just recompiled wxWidgets with TDM-GCC-9.

Thank you for giving me your time.
Happy Christmas.

std::vector error with wx custom class

Hi,
I am getting an error while making a vector.

frame.h

#include <wx/wx.h>

class Frame : public wxPanel
{
public:
    Frame(wxPanel* parent, int xx, int yy);
    ~Frame();

private:
    int x;
    int y;
}

frame.cpp

#include "frame.h"

Frame::Frame(wxPanel* parent, int xx, int yy)
:wxPanel(parent)
{
    x = xx;
    y = yy;
}

Frame::~Frame()
{
}

in another wxPanel ,

I am creating a vector-

std::vector<Frame> vFrames;

And using it in a function-

FinalFrame::addFrame()
{
    vFrames.push_back(Frame(this, 20, 40));
}

And I am getting this error-
error: use of deleted function 'Frame::Frame(const Frame&)'

Is this related to wx or I am coding some stupid code.