20 lines
No EOL
662 B
Markdown
20 lines
No EOL
662 B
Markdown
## Linux compilation
|
|
|
|
> mkdir build
|
|
> cd build
|
|
> cmake -DCMAKE_BUILD_TYPE=Debug ..
|
|
> make
|
|
|
|
## Valgrind usage
|
|
|
|
> valgrind valgrind_params path/to/binary binary_params, eg:
|
|
> valgrind --leak-check=full ./ResourceFactory
|
|
> or full output using command: valgrind --leak-check=full --show-leak-kinds=all --track-origins=yes --verbose --log-file=valgrind-out.txt ./ResourceFactory
|
|
|
|
## Resource exapmle
|
|
|
|
1. Compile and run ResourceFactory application
|
|
2. Put comments in places where you can spot some problems
|
|
3. How to remove elements from the collection (<code>vector<Resource*></code> resources)?
|
|
4. Check memory leaks
|
|
5. Fix problems |