I am trying to add an external library (cs50.h, from https://github.com/cs50/libcs50) and I receive the following errors after executing the code in Jupyter:
Undefined symbols for architecture x86_64: "_get_int", referenced from: _main in tmpfiu4losa-26cf76.o ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) [C kernel] GCC exited with code 1, the executable will not be executed
I tried going to the xeus lib folder and doing the same, but it did not work. Any input appreciated.
Thank you,
Markos
PS. Intuitively I think somehow I need to point the compiler to the cs50.h library, but there is no tutorial on how to add external libraries for C in XEUS. I saw something about C++ but not for C.
I am trying to add an external library (cs50.h, from https://github.com/cs50/libcs50) and I receive the following errors after executing the code in Jupyter:
Undefined symbols for architecture x86_64: "_get_int", referenced from: _main in tmpfiu4losa-26cf76.o ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) [C kernel] GCC exited with code 1, the executable will not be executed
I had a similar error with the terminal compiler, which I solved with the following steps: https://github.com/cs50/libcs50/issues/212
I tried going to the xeus lib folder and doing the same, but it did not work. Any input appreciated.
Thank you, Markos
PS. Intuitively I think somehow I need to point the compiler to the cs50.h library, but there is no tutorial on how to add external libraries for C in XEUS. I saw something about C++ but not for C.