Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=fvbe.git;a=commitdiff;h=130e1a40dc48f0f35b1ee98f017b4d5a21a116a2
commit 130e1a40dc48f0f35b1ee98f017b4d5a21a116a2 Author: James Buren <[email protected]> Date: Mon Apr 28 05:01:36 2014 -0500 add a dummy main function. linker errors if it isn't. Why the fuck you need this for virtual functions is beyond me. diff --git a/src-new/ui.cpp b/src-new/ui.cpp index ecb8d7e..bf3aa1b 100644 --- a/src-new/ui.cpp +++ b/src-new/ui.cpp @@ -1,6 +1,7 @@ #include <iostream> #include <csignal> #include <cstring> +#include <cstdlib> #include "ui.hpp" // UI Class Start @@ -40,6 +41,15 @@ bool UI::setSignalInterrupt(int sig, bool interrupt) return true; } + +int UI::main(int argc, char **argv) +{ + // The arguments are never used here. + (void) argc; + (void) argv; + + return EXIT_SUCCESS; +} // UI Class End // Widget Class Start _______________________________________________ Frugalware-git mailing list [email protected] http://frugalware.org/mailman/listinfo/frugalware-git
