$make
g++ -I. -I./src -Wall -Werror -O3 simulation/Main.cpp -o Main
g++ -I. -I./src -Wall -Werror -O3 test/VectorTest.cpp -o VectorTest
test/VectorTest.cpp: In member function ‘void SparseVectorTest::testActiveIndices()’:
test/VectorTest.cpp:85:41: error: taking address of temporary array
test/VectorTest.cpp:88:41: error: taking address of temporary array
test/VectorTest.cpp: In member function ‘void SparseVectorTest::testSparseVectorSet()’:
test/VectorTest.cpp:114:36: error: taking address of temporary array
test/VectorTest.cpp:118:36: error: taking address of temporary array
test/VectorTest.cpp: In member function ‘void SparseVectorTest::testSetEntry()’:
test/VectorTest.cpp:143:41: error: taking address of temporary array
test/VectorTest.cpp:149:41: error: taking address of temporary array
test/VectorTest.cpp: In member function ‘void SparseVectorTest::testPlus()’:
test/VectorTest.cpp:175:41: error: taking address of temporary array
test/VectorTest.cpp: In member function ‘void SparseVectorTest::testMinus()’:
test/VectorTest.cpp:185:44: error: taking address of temporary array
test/VectorTest.cpp:188:43: error: taking address of temporary array
test/VectorTest.cpp: In member function ‘void SparseVectorTest::testMapTimes()’:
test/VectorTest.cpp:200:43: error: taking address of temporary array
test/VectorTest.cpp:203:41: error: taking address of temporary array
test/VectorTest.cpp: In member function ‘void SparseVectorTest::testMaxNorm()’:
test/VectorTest.cpp:212:43: error: taking address of temporary array
test/VectorTest.cpp: In member function ‘void SparseVectorTest::testEbeMultiply()’:
test/VectorTest.cpp:272:25: error: taking address of temporary array
test/VectorTest.cpp:275:26: error: taking address of temporary array
test/VectorTest.cpp:279:27: error: taking address of temporary array
make: *\ [VectorTest] Error 1
$ g++ --version
g++ (Ubuntu/Linaro 4.7.2-2ubuntu1) 4.7.2
Copyright (C) 2012 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
I met a compline error on ubuntu 12.10
$make g++ -I. -I./src -Wall -Werror -O3 simulation/Main.cpp -o Main g++ -I. -I./src -Wall -Werror -O3 test/VectorTest.cpp -o VectorTest test/VectorTest.cpp: In member function ‘void SparseVectorTest::testActiveIndices()’: test/VectorTest.cpp:85:41: error: taking address of temporary array test/VectorTest.cpp:88:41: error: taking address of temporary array test/VectorTest.cpp: In member function ‘void SparseVectorTest::testSparseVectorSet()’: test/VectorTest.cpp:114:36: error: taking address of temporary array test/VectorTest.cpp:118:36: error: taking address of temporary array test/VectorTest.cpp: In member function ‘void SparseVectorTest::testSetEntry()’: test/VectorTest.cpp:143:41: error: taking address of temporary array test/VectorTest.cpp:149:41: error: taking address of temporary array test/VectorTest.cpp: In member function ‘void SparseVectorTest::testPlus()’: test/VectorTest.cpp:175:41: error: taking address of temporary array test/VectorTest.cpp: In member function ‘void SparseVectorTest::testMinus()’: test/VectorTest.cpp:185:44: error: taking address of temporary array test/VectorTest.cpp:188:43: error: taking address of temporary array test/VectorTest.cpp: In member function ‘void SparseVectorTest::testMapTimes()’: test/VectorTest.cpp:200:43: error: taking address of temporary array test/VectorTest.cpp:203:41: error: taking address of temporary array test/VectorTest.cpp: In member function ‘void SparseVectorTest::testMaxNorm()’: test/VectorTest.cpp:212:43: error: taking address of temporary array test/VectorTest.cpp: In member function ‘void SparseVectorTest::testEbeMultiply()’: test/VectorTest.cpp:272:25: error: taking address of temporary array test/VectorTest.cpp:275:26: error: taking address of temporary array test/VectorTest.cpp:279:27: error: taking address of temporary array make: *\ [VectorTest] Error 1
$ g++ --version g++ (Ubuntu/Linaro 4.7.2-2ubuntu1) 4.7.2 Copyright (C) 2012 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.