simulavr-devel
[Top][All Lists]
Advanced

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

[Simulavr-devel] Simulavr 1.0.0 fails to compile on Linux Mint 17


From: Albrecht Frenzel
Subject: [Simulavr-devel] Simulavr 1.0.0 fails to compile on Linux Mint 17
Date: Fri, 29 Jan 2016 16:47:00 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1

g++ complains on systemclock.cpp:70:23:

libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I/usr/include -g -O2 -Icmd -Iui 
-Ihwtimer -c systemclock.cpp  -o .libs/systemclock.o
systemclock.cpp: In instantiation of ‘void MinHeap<Key, Value>::Insert(Key, 
Value) [with Key = long long int; Value = SimulationMember*]’:
systemclock.cpp:135:40:   required from here
systemclock.cpp:70:23: error: ‘resize’ was not declared in this scope, and no 
declarations were found by argument-dependent lookup at the point of 
instantiation [-fpermissive]
  resize(this->size()+1);
                       ^
systemclock.cpp:70:23: note: declarations in dependent base ‘std::vector<std::pair<long long int, 
SimulationMember*>, std::allocator<std::pair<long long int, SimulationMember*> > >’ 
are not found by unqualified lookup
systemclock.cpp:70:23: note: use ‘this->resize’ instead
make[3]: *** [systemclock.lo] Error 1
make[3]: Leaving directory `/tmp/simulavr-1.0.0/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/tmp/simulavr-1.0.0/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/tmp/simulavr-1.0.0/src'
make: *** [all-recursive] Error 1

Fixing line 70 to

        this->resize(this->size()+1);

makes the error disappear, but I dont't know, if that ist correct.

Albrecht




reply via email to

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