[Gambas-user] gambas 0.83
    Thierry Thomas 
    thierry at ...342...
       
    Sun Feb  8 23:33:43 CET 2004
    
    
  
Le Dim  8 fév 04 à 11:53:33 +0100, Benoit Minisini <gambas at ...1...>
 écrivait :
> Hi,
Salut !
> Well, I'm in a hurry, so here is gambas 0.83:
On FreeBSD, gambas 0.83 compilation aborts on
#v+
c++ -DHAVE_CONFIG_H -I. -I. -I../../.. -I/usr/X11R6/include -I../../../src/share -I/usr/local/include -I/usr/local/include -I/usr/X11R6/include -D_GETOPT_H -Wall -fno-exceptions -g -c CFont.cpp  -fPIC -DPIC -o .libs/CFont.lo
CFont.cpp: In function `void CFONT_ref(CFONT *)':
CFont.cpp:46: syntax error before `,'
CFont.cpp:46: syntax error before `)'
#v-
because offsetof is not defined. The following patch fixes it:
#v+
--- ./src/lib/qt/CFont.cpp.orig Sat Feb  7 18:56:11 2004
+++ ./src/lib/qt/CFont.cpp      Sun Feb  8 22:38:18 2004
@@ -29,6 +29,7 @@
 #include <qstringlist.h>
 #include <qfontmetrics.h>
 
+#include "gb_common.h"
 #include "CWidget.h"
 #include "CDraw.h"
 #include "CFont.h"
#v-
Further, it aborts because sys/socket.h needs sys/types.h. The following
patch fixes it:
#v+
--- ./src/lib/net/CDnsClient.c.orig     Sat Feb  7 22:31:07 2004
+++ ./src/lib/net/CDnsClient.c  Sun Feb  8 23:12:20 2004
@@ -27,9 +27,9 @@
 #include <stdlib.h>
 #include <string.h>
 #include <netdb.h>
+#include <sys/types.h>
 #include <sys/socket.h>
 #include <sys/poll.h>
-#include <sys/types.h>
 #include <netinet/in.h>
 #include <arpa/inet.h>
 #include <unistd.h>
#v-
And then, everything goes well!
Regards,
-- 
Th. Thomas.
    
    
More information about the User
mailing list