Skip to the task
Layout
Back to classic view

You are looking ahead. Your place is still task 1: Types.

EDITTask 6 of 23 · step 4: Input with input.hConnect the input.h library
Connect the input.h library in practice/02/

A second line: the program p02_card will use the course library course_input.

Checklist

  • Every task is one commit with a clear message.

Numbered notes in the code explain the important lines.

Details & hint

Stuck? Without this line compiling succeeds, but the linker reports undefined reference to `read_int'.

practice 02 CMakeLists.txt Code Diff +1
M · MODIFIED git diff: red = old code, green = new.
--- a/practice/02/CMakeLists.txt
+++ b/practice/02/CMakeLists.txt
@@ -1,1 +1,2 @@
add_executable(p02_card main.c)
+ target_link_libraries(p02_card PRIVATE course_input)