vectorgraphics / asymptote

2D & 3D TeX-Aware Vector Graphics Language
https://asymptote.sourceforge.io/
GNU General Public License v3.0
547 stars 90 forks source link

Compilation issue #316

Closed malcolmroberts closed 2 years ago

malcolmroberts commented 2 years ago

Using c1ec3a89, g++ 9.4.0 on an up-to-date Ubuntu 20.04 LTS, I get the following compilation error after running

./autogen.sh && ./configure --prefix=$HOME/asy -enable-fftw && make

I get the following error:

PEN_SOURCE=600 -I/usr/include/readline     -std=c++14 -g -O2 -fno-var-tracking -ILspCpp/include -o gsl.o -c gsl.cc
settings.h:43:19: error: expected unqualified-id before string constant
   43 | extern const char VERSION[];
      |                   ^~~~~~~

I get the same error when using the tgz with 2.8.1.

johncbowman commented 2 years ago

Perhaps there is an issue in one of your header files. Do a make clean and then ./configure --prefix=$HOME/asy --disable-gc

johncbowman commented 2 years ago

I meant to write ./configure --prefix=$HOME/asy --disable-gsl

malcolmroberts commented 2 years ago

./configure --prefix=$HOME/asy --disable-gsl && make clean && make produced the same result.

malcolmroberts commented 2 years ago

I did a git clean -fdx and things seem to work now; this may be an issue with generated files not being removed by make clean.