Its probably something simple that I overlooked, but I have never gotten this error before and I have no idea how to get past it:
c:\Qt\4.4.1\lib/libqtmain.a(qtmain_win.o)(.text+0x156):qtmain_win.cpp: undefined reference to `qMain(int, char**)'
c:\Qt\4.4.1\lib/libqtmain.a(qtmain_win.o)(.text+0x156):qtmain_win.cpp: undefined reference to `qMain(int, char**)'
To copy to clipboard, switch view to plain text mode
originally, I had some classes that I wanted to put into a shared library. These classes were for QDialogs, and one of them was a QMainWindow. The reason for a 'dialog' being a QMainWindow was to have a tool bar on it (it is a dialog that allows the user to send an email), which doesn't seem to be allowed for QDialogs. The reason to include the dialogs within a library, was to create a common library of dialogs that I could use in multiple programs.
The shared library compiled fine with no errors, so I am assuming that something might be wrong with the .pro file of the program that is using the library.
Bookmarks