TDDD38 Advanced Programming in C++
Working in the lab system
There are two simple ways of working with our system graphically; locally and using ThinLinc.
ThinLinc
ThinLinc is a system from cendio which you can use to access our lab system from your own system in a graphical window. Download the client from Cendio and install it. Then connect to hostthinlinc.edu.liu.se using your usual LiU-ID and password.
Compiler warnings
Gcc has alot of warning flags which is highly recommended.- -std=c++20
- Compile with the newest standard (c++17 is default in the compilers in the SU labs)
- -Wall -Wextra -pedantic
- A group of warnings for things that really should be default
- -Weffc++
- Warns on things related to class design and other efficiency problems
- -Wsuggest-attribute=const
- Show which functions that can be const
~/.bashrc-file:
alias g++20='g++ -std=c++20 -Wall -Wextra -pedantic -Weffc++ -Wsuggest-attribute=const'
Page responsible: Christoffer Holm
Last updated: 2026-01-18
