bug-apl
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-apl] Compilation failure


From: David B. Lamkins
Subject: [Bug-apl] Compilation failure
Date: Wed, 1 Nov 2017 19:28:38 -0700
User-agent: Mutt/1.9.1 (2017-09-22)

Updated to revision 1018.

Output of clang++ -v:
clang version 4.0.1 (tags/RELEASE_401/final)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
Found candidate GCC installation: /usr/bin/../lib/gcc/x86_64-redhat-linux/7
Found candidate GCC installation: /usr/lib/gcc/x86_64-redhat-linux/7
Selected GCC installation: /usr/bin/../lib/gcc/x86_64-redhat-linux/7
Candidate multilib: .;@m64
Candidate multilib: 32;@m32
Selected multilib: .;@m64

The failed compilation step:

clang++ -DHAVE_CONFIG_H -I. -I..    -Wall -I sql -Wold-style-cast -Werror 
-I/usr/include -I/usr/i
nclude   -g -O2 -MT apl-Quad_FFT.o -MD -MP -MF .deps/apl-Quad_FFT.Tpo -c -o 
apl-Quad_FFT.o `test
-f 'Quad_FFT.cc' || echo './'`Quad_FFT.cc
Quad_FFT.cc:80:9: error: 'delete' applied to a pointer that was allocated with 
'new[]'; did you m
ean 'delete[]'? [-Werror,-Wmismatched-new-delete]
        delete wp;
        ^
              []
Quad_FFT.cc:71:23: note: allocated with 'new[]' here
        double * wp = new double[N];
                      ^
Quad_FFT.cc:224:9: error: 'delete' applied to a pointer that was allocated with 
'new[]'; did you
mean 'delete[]'? [-Werror,-Wmismatched-new-delete]
        delete wp;
        ^
              []
Quad_FFT.cc:210:23: note: allocated with 'new[]' here
        double * wp = new double[N];
                      ^
2 errors generated.

-- 
Whoever has lived long enough to find out what life is, knows how deep a debt
of gratitude we owe to Adam, the first great benefactor of our race.  He
brought death into the world.
                -- Mark Twain, "Pudd'nhead Wilson's Calendar"



reply via email to

[Prev in Thread] Current Thread [Next in Thread]