wpa_gui compilation

Pavel Roskin proski
Tue Mar 28 21:06:51 PST 2006


Hello!

On Wed, 2006-03-29 at 00:28 +0100, Jo?o Mamede wrote:
> guys I'm trying to compile wpa_gui in my desktop everything compiles 
> fine glibc version:2.3.6 gcc/g++ 4.0.3  qt 3.3.5
> in my laptop I have glibc 2.3.6 gcc/g++ 4.0.3 qt(tried 3.3.5 and 3.3.6)
> and I have this compilation error:
[skip]
> .ui/../wpagui.ui.h: In member function 'void WpaGui::destroy()':
> .ui/../wpagui.ui.h:80: error: 'free' was not declared in this scope

I guess we should add more include files to *.ui.h, and not just for
Windows.  Please try this patch:

--- wpa_supplicant/wpa_gui/networkconfig.ui.h
+++ wpa_supplicant/wpa_gui/networkconfig.ui.h
@@ -10,6 +10,7 @@
 ** destructor.
 *****************************************************************************/
 
+#include <stdlib.h>
 
 enum {
     AUTH_NONE = 0,
--- wpa_supplicant/wpa_gui/userdatarequest.ui.h
+++ wpa_supplicant/wpa_gui/userdatarequest.ui.h
@@ -10,6 +10,8 @@
 ** destructor.
 *****************************************************************************/
 
+#include <stdlib.h>
+
 int UserDataRequest::setParams(WpaGui *_wpagui, const char *reqMsg)
 {
     char *tmp, *pos, *pos2;
--- wpa_supplicant/wpa_gui/wpagui.ui.h
+++ wpa_supplicant/wpa_gui/wpagui.ui.h
@@ -11,10 +11,9 @@
 *****************************************************************************/
 
 
-#ifdef __MINGW32__
 /* Need to get getopt() */
 #include <unistd.h>
-#endif
+#include <stdlib.h>
 
 
 void WpaGui::init()


-- 
Regards,
Pavel Roskin





More information about the Hostap mailing list