This is the mail archive of the ecos-patches@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Building ConfigTool with GCC 4.x.x


I just tried to build the config tool using GCC 4.2.1 and
had some problems.

The changes I needed are attached.  I'm not a C++ guru, so
please comment on them (I purposefully left the problem
sections in comments) and let me know the best way to fix
it.  The tool runs fine with the changes I made.

Note: there are two changes here.  One I previously found when
building with GCC-3.4.x and the latest one which is necessary
when using GCC-4.2.x

Thanks

-- 
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------
Only in ecos: ct
diff -ur ecos.ORIG/host/tools/configtool/standalone/wxwin/propertywin.h ecos/host/tools/configtool/standalone/wxwin/propertywin.h
--- ecos.ORIG/host/tools/configtool/standalone/wxwin/propertywin.h	2001-06-01 16:16:30.000000000 -0600
+++ ecos/host/tools/configtool/standalone/wxwin/propertywin.h	2007-10-23 07:27:17.000000000 -0600
@@ -93,7 +93,7 @@
     int m_nFirstProperty;
     ecConfigItem *m_pti;
 
-    static const std::string ecPropertyListCtrl::visible_properties [];
+    static const std::string /*ecPropertyListCtrl::*/visible_properties [];
 	static const wxChar* sm_fieldTypeImage[ecMAXFIELDTYPE];
 };
 
Only in ecos/host/tools/configtool/standalone/wxwin: propertywin.h.~1.1.~
diff -ur ecos.ORIG/host/tools/ecostest/common/eCosTest.h ecos/host/tools/ecostest/common/eCosTest.h
--- ecos.ORIG/host/tools/ecostest/common/eCosTest.h	2000-04-18 15:51:58.000000000 -0600
+++ ecos/host/tools/ecostest/common/eCosTest.h	2007-10-23 07:25:18.000000000 -0600
@@ -199,7 +199,7 @@
   bool GetSizes();
 
   // Connect to a test server
-  static ServerStatus CeCosTest::Connect (LPCTSTR pszHostPort, CeCosSocket *&pSock, const ExecutionParameters &e,String &strInfo,Duration dTimeout=10*1000);
+  static ServerStatus /*CeCosTest::*/Connect (LPCTSTR pszHostPort, CeCosSocket *&pSock, const ExecutionParameters &e,String &strInfo,Duration dTimeout=10*1000);
 
   // Log some output.  The accumulated output can be retrieved using Output()
   void Log (LPCTSTR  const pszFormat,...);
Only in ecos/host/tools/ecostest/common: eCosTest.h.~1.2.~
Only in ecos: tcl
Only in ecos/tcl8.4.6/unix: config.cache
Only in ecos/tcl8.4.6/unix: config.log
Only in ecos/tcl8.4.6/unix: config.status
Only in ecos/tcl8.4.6/unix/dltest: Makefile
Only in ecos/tcl8.4.6/unix: libtcl8.4.a
Only in ecos/tcl8.4.6/unix: libtclstub8.4.a
Only in ecos/tcl8.4.6/unix: Makefile
Only in ecos/tcl8.4.6/unix: regcomp.o
Only in ecos/tcl8.4.6/unix: regerror.o
Only in ecos/tcl8.4.6/unix: regexec.o
Only in ecos/tcl8.4.6/unix: regfree.o
Only in ecos/tcl8.4.6/unix: tclAlloc.o
Only in ecos/tcl8.4.6/unix: tclAppInit.o
Only in ecos/tcl8.4.6/unix: tclAsync.o
Only in ecos/tcl8.4.6/unix: tclBasic.o
Only in ecos/tcl8.4.6/unix: tclBinary.o
Only in ecos/tcl8.4.6/unix: tclCkalloc.o
Only in ecos/tcl8.4.6/unix: tclClock.o
Only in ecos/tcl8.4.6/unix: tclCmdAH.o
Only in ecos/tcl8.4.6/unix: tclCmdIL.o
Only in ecos/tcl8.4.6/unix: tclCmdMZ.o
Only in ecos/tcl8.4.6/unix: tclCompCmds.o
Only in ecos/tcl8.4.6/unix: tclCompExpr.o
Only in ecos/tcl8.4.6/unix: tclCompile.o
Only in ecos/tcl8.4.6/unix: tclConfig.sh
Only in ecos/tcl8.4.6/unix: tclDate.o
Only in ecos/tcl8.4.6/unix: tclEncoding.o
Only in ecos/tcl8.4.6/unix: tclEnv.o
Only in ecos/tcl8.4.6/unix: tclEvent.o
Only in ecos/tcl8.4.6/unix: tclExecute.o
Only in ecos/tcl8.4.6/unix: tclFCmd.o
Only in ecos/tcl8.4.6/unix: tclFileName.o
Only in ecos/tcl8.4.6/unix: tclGet.o
Only in ecos/tcl8.4.6/unix: tclHash.o
Only in ecos/tcl8.4.6/unix: tclHistory.o
Only in ecos/tcl8.4.6/unix: tclIndexObj.o
Only in ecos/tcl8.4.6/unix: tclInterp.o
Only in ecos/tcl8.4.6/unix: tclIOCmd.o
Only in ecos/tcl8.4.6/unix: tclIOGT.o
Only in ecos/tcl8.4.6/unix: tclIO.o
Only in ecos/tcl8.4.6/unix: tclIOSock.o
Only in ecos/tcl8.4.6/unix: tclIOUtil.o
Only in ecos/tcl8.4.6/unix: tclLink.o
Only in ecos/tcl8.4.6/unix: tclListObj.o
Only in ecos/tcl8.4.6/unix: tclLiteral.o
Only in ecos/tcl8.4.6/unix: tclLoadNone.o
Only in ecos/tcl8.4.6/unix: tclLoad.o
Only in ecos/tcl8.4.6/unix: tclMain.o
Only in ecos/tcl8.4.6/unix: tclNamesp.o
Only in ecos/tcl8.4.6/unix: tclNotify.o
Only in ecos/tcl8.4.6/unix: tclObj.o
Only in ecos/tcl8.4.6/unix: tclPanic.o
Only in ecos/tcl8.4.6/unix: tclParseExpr.o
Only in ecos/tcl8.4.6/unix: tclParse.o
Only in ecos/tcl8.4.6/unix: tclPipe.o
Only in ecos/tcl8.4.6/unix: tclPkg.o
Only in ecos/tcl8.4.6/unix: tclPosixStr.o
Only in ecos/tcl8.4.6/unix: tclPreserve.o
Only in ecos/tcl8.4.6/unix: tclProc.o
Only in ecos/tcl8.4.6/unix: tclRegexp.o
Only in ecos/tcl8.4.6/unix: tclResolve.o
Only in ecos/tcl8.4.6/unix: tclResult.o
Only in ecos/tcl8.4.6/unix: tclScan.o
Only in ecos/tcl8.4.6/unix: tclsh
Only in ecos/tcl8.4.6/unix: tclStringObj.o
Only in ecos/tcl8.4.6/unix: tclStubInit.o
Only in ecos/tcl8.4.6/unix: tclStubLib.o
Only in ecos/tcl8.4.6/unix: tclThreadAlloc.o
Only in ecos/tcl8.4.6/unix: tclThreadJoin.o
Only in ecos/tcl8.4.6/unix: tclThread.o
Only in ecos/tcl8.4.6/unix: tclTimer.o
Only in ecos/tcl8.4.6/unix: tclUnixChan.o
Only in ecos/tcl8.4.6/unix: tclUnixEvent.o
Only in ecos/tcl8.4.6/unix: tclUnixFCmd.o
Only in ecos/tcl8.4.6/unix: tclUnixFile.o
Only in ecos/tcl8.4.6/unix: tclUnixInit.o
Only in ecos/tcl8.4.6/unix: tclUnixNotfy.o
Only in ecos/tcl8.4.6/unix: tclUnixPipe.o
Only in ecos/tcl8.4.6/unix: tclUnixSock.o
Only in ecos/tcl8.4.6/unix: tclUnixThrd.o
Only in ecos/tcl8.4.6/unix: tclUnixTime.o
Only in ecos/tcl8.4.6/unix: tclUtf.o
Only in ecos/tcl8.4.6/unix: tclUtil.o
Only in ecos/tcl8.4.6/unix: tclVar.o
Only in ecos: tools
Only in ecos: wx-build
--- ecos/host/tools/Utils/common/eCosSocket.h~	2000-09-18 23:53:51.000000000 -0600
+++ ecos/host/tools/Utils/common/eCosSocket.h	2005-05-20 14:36:25.779612536 -0600
@@ -166,7 +166,8 @@
   
   enum   SSReadResult {SS_SOCKET_ERROR=-1,SS_SOCKET_READ=1,SS_SERIAL_ERROR=-2,SS_SERIAL_READ=2,SS_STOPPED=0};
 
-protected:
+  //protected:
+ public:
 
   // Blocking read on one or other of the data sources:
   // Result:  -1 - socket error occurred

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]