1. Changed the CFLAGS line of gfan0.2.1/Makefile to the following:

   CFLAGS	  = -I$(SAGE_LOCAL)/include $(OPTFLAGS) $(GPROFFLAG) $(ADDITIONALINCLUDEOPTIONS) #-pedantic

i.e., add "-I$(SAGE_LOCAL)/include".

2. In the gfan0.2.1/Makefile, I changed the order of including
libraries in the LINK options, since otherwise the build fails on
Cygwin/Windows:

  ADDITIONALLINKOPTIONS = -lcddgmp -lgmp 
  ADDITIONALINCLUDEOPTIONS =
  else
  ADDITIONALLINKOPTIONS = $(cddpath)lib-src-gmp/libcddgmp.a -lgmp 

3. Removed something from Makefile because of build problems:

Hi,
I do not see why the compiler complains here. Do you get similar mistakes in the other app_*.cpp files? If not, one option is to just remove app_construction.o from the list of objects files in the Makefile. This will not destroy anything as gfan_construction is a secret command that only I use.
-Anders
 
William Stein wrote:
Hi,
 
Does this gfan build problem suggest anything to you?  This is with the
latest gfan-2.2, on a Linux-running Athlon with
 
g++ -I/scratch/sage-1.5.alpha.pre2/local/include -O2 -DGMPRATIONAL    -c app_construction.cpp
app_construction.cpp: In member function `void Graph::computeCoordinazation()':
app_construction.cpp:345: error: type specifier omitted for parameter `
   rowsToIntegerMatrix()'
app_construction.cpp:345: error: parse error before `;' token
app_construction.cpp:346: error: request for member `dualCone' in `c', which is
   of non-aggregate type `PolyhedralCone ()(...)'
app_construction.cpp:367: error: type specifier omitted for parameter `A'
app_construction.cpp:367: error: type specifier omitted for parameter `
   numberOfEdges'
app_construction.cpp:368: error: request for member `containsPositiveVector' in
   `ker', which is of non-aggregate type `PolyhedralCone ()(IntegerVectorList
   (*)())'
make: *** [app_construction.o] Error 1
 
Here are the compiler specs:
 
was@meccah4 doc$ gcc -v
Reading specs from /usr/lib/gcc-lib/i486-linux/3.3.5/specs
Configured with: ../src/configure -v --enable-languages=c,c++,java,f77,pascal,objc,ada,treelang --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-gxx-include-dir=/usr/include/c++/3.3 --enable-shared --enable-__cxa_atexit --with-system-zlib --enable-nls --without-included-gettext --enable-clocale=gnu --enable-debug --enable-java-gc=boehm --enable-java-awt=xlib --enable-objc-gc i486-linux
Thread model: posix
gcc version 3.3.5 (Debian 1:3.3.5-12)
 
 
 
