Common resources for CS 2040
- Setting up the the CS 2040 VM
for C++ development
- If opening files is not working in CodeLite:
- Right click on your project and select Settings...
- In the General group, scroll down to Working
Directory and set it to
$(WorkspacePath)/
. Then, press
the tab key.
- If you have not done so, select the Compiler tab and
set C++ Compiler Options
to
-g;-O0;-Wall;-std=c++17
. Again, press
the tab key.
-
You might go back and check the Working Directory in
the General tab - it is very easy to not save your changes.
- Click OK
You can now place the files in the top level directory of the
workspace. That is, if your workspace is named myspace
, put
your files in the same folder that contains myspace.workspace
.
- C++ Compiler errors and fixes
- Debugging 201: Debugging segmentation
faults in C++