An apt-get install simulavr will install a previous version of simulavr in Debian Wheezy which has no support for 'atmega328'. So it is better to install it from the latest source.
- To install first download the source tar http://www.nongnu.org/simulavr/download.html
- Then untar it and ./configure
- You may have to install libbfd which is there in binutils-dev
- apt-cache search libbfd
- sudo apt-get install binutils-dev
- Then make
- For an error like this
- > 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
- vim ./src/systemclock.cpp
- Go to line 70 change resize( to this->resize(.
Then make again and sudo make install
Now >> simulavr --help will show atmeg328.