Hello all,
as the title suggests, I am unable to compile my wxFormBuilder project. I am new to c++ (last contact is about 10 years ago) and I am trying to reenter gui application development. So, I think this is a newbie question, but perhaps you will help me nevertheless.
The error is:
1 2 3 4
LANG="en_US.UTF-8" g++ `wx-config --version=3.1-gtk3 --cxxflags --libs` main.cpp
/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: /tmp/ccvKOguT.o: in function `App::OnInit()':
main.cpp:(.text+0xaf): undefined reference to `MyWindow::MyWindow(wxWindow*)'
collect2: Fehler: ld gab 1 als Ende-Status zurück
#ifndef __MyWindow__
#define __MyWindow__
/**
@file
Subclass of MainWindow, which is generated by wxFormBuilder.
*/
#include "ui.h"
//// end generated include
/** Implementing MainWindow */
class MyWindow : public MainWindow
{
public:
/** Constructor */
MyWindow( wxWindow* parent );
//// end generated class members
};
#endif // __MyWindow__
wxFormBuilder classes for inheritance MyWindow.cpp: