Command line compilation and execution
On this page
Refresher: connecting to your virtual environment from VS Code
Command line compilation and execution
Q1
QQ1
This question is ungraded.
Assume that you're compiling from the root directory of the project you're working on. How do
we tell clang++ to look for source files in the directory includes relative
to your current working directory? In your response, specify only the flag and the argument.
Q2
QQ2
This question is ungraded.
Assume that you're compiling from the root directory of the project you're working on. How do
we tell clang++ to write the executable named exec to the bin directory, a directory
which is relative to your current working directory? In your response, specify only the flag and the argument.
Q3
QQ3
This question is ungraded.
Assume that you're compiling from the root directory of the project you're working on. You've compiled
your solution to bin/exec. How do you run your compiled application from the command line?
Q4
QQ4
This question is ungraded.
True or false? In this class, we expect you to always open your project's directory in its own VS Code window.
Q5
QQ5
This question is ungraded.
In the lesson video, we observed the error message fatal error: `utilities.hpp`
file not found from the compiler. We resolved this error by doing what?
Q6
QQ6
This question is ungraded.
In the lesson video, we observed the error message error: linker command failed with exit code 1 from the linker.
We resolved this error by doing what?