Mattijs Janssens wrote:
>
> About the DEC problem:
>
> it seems to work with a recent version of dx. Maybe the problem was that
> I was using an old(er) version of flex. Below are the steps I took
>
> 0] I started from CVS sources from 2/11/01
>
So I grabbed the status of 8/11/01
>
> 1] use flex 2.5.4 and Bison 1.28
>
Fetched them to:
flex version 2.5.4
GNU Bison version 1.28 (linux), 1.30 (alpha)
> 2]
> Changed: exec/dxmods/_im_image.c
> 301: changed arg 3 of DXGetArrayInfo from 'int' to 'Type'
> 714: removed GrayscaleMatteType(ImageMagick5.3.1 <-> 5.3.6)
> 902: removed second arg from call to GetMagickInfo (ImageMagick5.3.1 <->
> 5.3.6)
>
(configured without Magick)
> 3]
> in configure
> change section for alphax (at line 3400 or so) to
>
> if test $ARCH = "alphax" ; then
> ..
> LDFLAGS=" -Wl,-expect_unresolved,'*' -Wl,-all,-lgcc,-none"
> fi
>
> (this will prevent doubly defined __throw)
>
Did not needed that one.
> 4]
> no Java.
>
Of course.
The first change I made was: (after aclocal .. autoconf):
switching order of c++ and g++ in configure in order not to mix cc/c++
and gcc/g++:
for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
On the SuSE Linux machine the code compiled straight out of the CVS with
gcc 2.95.2
On the alhpa (under tru64) gcc 3.0.1 did complain a lot about some
friends not going to classes. And some `backward compatibility' problems
with cerr etc (fixed with #include
"/usr/local/gcc/include/g++-v3/backward/iostream.h")
The open/macro problem now indeed disappeared! I can see my macros :) !
FYI the list of fixes for gcc 3.0.1
AnnotationGroupManager.C:
In file included from GroupManager.h:20,
from AnnotationGroupManager.h:19,
from AnnotationGroupManager.C:18:
../base/Dictionary.h:51: friend declaration requires class-key,
i.e. `friend class
DictionaryIterator'
ApplicIF.C:
In file included from ApplicIF.C:18:
../dxui/Node.h:79: friend declaration requires class-key,
i.e. `friend class
StandIn'
AutoAxesDialog.C:
In file included from AutoAxesDialog.C:34:
ImageWindow.h:226: friend declaration requires class-key,
i.e. `friend class NoUndoImageCommand'
ControlPanel.C:
In file included from ControlPanel.C:39:
InteractorInstance.h:42: friend declaration requires class-key,
i.e. `friend class Interactor'
DXAnchorWindow.C:
In file included from DXAnchorWindow.C:15:
DXAnchorWindow.h:36: friend declaration requires class-key,
i.e. `friend class
NoUndoAnchorCommand'
DXApplication.C:
In file included from ToolSelector.h:21,
from DXApplication.C:80:
../base/ActiveItemDictionary.h:33: friend declaration requires
class-key,
i.e. `friend class
DictionaryIterator'
FileSelectorDialog.C:
In file included from FileSelectorDialog.C:19:
FileSelectorInstance.h:35: friend declaration requires class-key,
i.e. `friend class FileSelectorNode'
FileSelectorInstance.h:36: friend declaration requires class-key,
i.e. `friend class
FileSelectorDialog'
ScalarInstance.C:
In file included from ScalarInstance.h:30,
from ScalarInstance.C:15:
LocalAttributes.h:33: friend declaration requires class-key,
i.e. `friend class InteractorNode'
In file included from ScalarInstance.C:15:
ScalarInstance.h:45: friend declaration requires class-key,
i.e. `friend class ScalarNode'
ScalarInstance.h:46: friend declaration requires class-key,
i.e. `friend class SetScalarAttrDialog'
ScalarInstance.h:47: friend declaration requires class-key,
i.e. `friend class
StepperInteractor'
ToggleAttrDialog.C
In file included from ToggleAttrDialog.C:27:
ToggleInstance.h:31: friend declaration requires class-key,
i.e. `friend class
ToggleNode'
Browser.C:
Browser.C: In member function `void Browser::gotoLine(long unsigned
int)':
Browser.C:980: `cerr' undeclared (first use this function)
Browser.C:980: (Each undeclared identifier is reported only once for
each
function it appears in.)
Browser.C:980: `endl' undeclared (first use this
function)
#include "/usr/local/gcc/include/g++-v3/backward/iostream.h"
BrowserCommand.C:
In file included from BrowserCommand.C:19:
GARApplication.h:107: friend declaration requires class-key,
i.e. `friend class GARChooserWindow'
GARApplication.h:108: friend declaration requires class-key,
i.e. `friend class GridChoice'
GARApplication.h:164: type specifier omitted for parameter
GARApplication.h:164: parse error before `*'
token
#include "/usr/local/gcc/include/g++-v3/backward/iostream.h"
CommandTextPopup.C:
In file included from CommandTextPopup.C:15:
GARChooserWindow.h:36: friend declaration requires class-key,
i.e. `friend class
TypeChoice'
CommentDialog.C:
In file included from CommentDialog.h:19,
from CommentDialog.C:16:
GARMainWindow.h:405: `istream' was not declared in this scope
GARMainWindow.h:405: `from' was not declared in this
scope
etc
#include "/usr/local/gcc/include/g++-v3/backward/iostream.h"
FileContents.C:
In file included from FileContents.C:13:
FileContents.h:44: friend declaration requires class-key,
i.e. `friend class QuitCommand'
FileContents.h:87: friend declaration requires class-key,
i.e. `friend class
FileContents'
MBApplication.C:
In file included from MBApplication.C:36:
MBMainWindow.h:110: friend declaration requires class-key,
i.e. `friend class MBCommand'
MBMainWindow.h:111: friend declaration requires class-key,
i.e. `friend class MBNewCommand'
MBMainWindow.h:112: friend declaration requires class-key,
i.e. `friend class
ConfirmedQCommand'
--
########/ \## Cyclone Fluid Dynamics BV
#######/ /\ \# Big whirls have little whirls Henk Krus
######/ /##\__ That feed on their velocity; De Neerheide 12 d
_ \##/ /###### And little whirls have NL-5581 TP Waalre
#\ \/ /####### smaller whirls Tel.:+31-40-22 30 491
##\ /######## And so on to viscosity. Fax.:+31-40-22 30 490
C Y C L O N E Email: [EMAIL PROTECTED]
FLUID DYNAMICS L.F. Richardson (1926) http://www.cyclone.nl