# Tutorial Step 9 error

**URL:** https://discourse.cmake.org/t/tutorial-step-9-error/533
**Category:** Code
**Tags:** os:linux
**Created:** [January 21, 2020, 11:07pm UTC](https://discourse.cmake.org/t/tutorial-step-9-error/533 "2020-01-21T23:07:28Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![mrichter](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/m/858c86/32.png) [@mrichter](https://discourse.cmake.org/u/mrichter)
#### Post date: [January 21, 2020, 11:07pm UTC](https://discourse.cmake.org/t/tutorial-step-9-error/533/1 "2020-01-21T23:07:28Z")

</div>

Hello again.

In setting up to build for step 9 of the online tutorial, I Get a different error than theone the tutorial says I should expect.

I followed all the sintructions given up to the point wehre it says what should happen if I build (before changing the library t a static with PIC). I see this error - not sure what I missed:

14:58 [mrichter@mrichter-linux:~/Downloads/cmake-Help-guide/tutorial/Step09] $ cmake .  
– The C compiler identification is GNU 8.3.0  
– The CXX compiler identification is GNU 8.3.0  
– Check for working C compiler: /usr/bin/cc  
– Check for working C compiler: /usr/bin/cc – works  
– Detecting C compiler ABI info  
– Detecting C compiler ABI info - done  
– Detecting C compile features  
– Detecting C compile features - done  
– Check for working CXX compiler: /usr/bin/c++  
– Check for working CXX compiler: /usr/bin/c++ – works  
– Detecting CXX compiler ABI info  
– Detecting CXX compiler ABI info - done  
– Detecting CXX compile features  
– Detecting CXX compile features - done  
– Configuring done  
– Generating done  
– Build files have been written to: /home/mrichter/Downloads/cmake-Help-guide/tutorial/Step09  
14:58 [mrichter@mrichter-linux:~/Downloads/cmake-Help-guide/tutorial/Step09] $ cmake --build .  
Scanning dependencies of target Tutorial  
[11%] Building CXX object CMakeFiles/Tutorial.dir/tutorial.cxx.o  
/home/mrichter/Downloads/cmake-Help-guide/tutorial/Step09/tutorial.cxx:7:10: fatal error: MathFunctions.h: No such file or directory  
#include “MathFunctions.h”  
^ ~~~~~~~~~~~~~~~~  
compilation terminated.  
make[2]: \*\*\* [CMakeFiles/Tutorial.dir/build.make:63: CMakeFiles/Tutorial.dir/tutorial.cxx.o] Error 1  
make[1]: \*\*\* [CMakeFiles/Makefile2:371: CMakeFiles/Tutorial.dir/all] Error 2  
make: \*\*\* [Makefile:163: all] Error 2  
14:58 [mrichter@mrichter-linux:~/Downloads/cmake-Help-guide/tutorial/Step09] $

Help?

---

<div class="post-metadata">

### Author: ![McMartin](https://discourse.cmake.org/user_avatar/discourse.cmake.org/mcmartin/32/150_2.png) [@McMartin](https://discourse.cmake.org/u/McMartin)
#### Post date: [January 22, 2020, 2:06pm UTC](https://discourse.cmake.org/t/tutorial-step-9-error/533/2 "2020-01-22T14:06:22Z")

</div>

Do you have

```cmake
target_link_libraries(Tutorial PUBLIC MathFunctions)

```

in the top-level `CMakeLists.txt` file and

```auto
target_include_directories(MathFunctions
                           INTERFACE ${CMAKE_CURRENT_SOURCE_DIR}
                           )

```

in `MathFunctions/CMakeLists.txt`?

---

<div class="post-metadata">

### Author: ![mrichter](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/m/858c86/32.png) [@mrichter](https://discourse.cmake.org/u/mrichter)
#### Post date: [January 22, 2020, 9:55pm UTC](https://discourse.cmake.org/t/tutorial-step-9-error/533/3 "2020-01-22T21:55:42Z")

</div>

The top level change was missing.

Thanks.
