How to link the cs50 C library in gcc on windows
问题 I'm new to С programming and have been trying to compile my code using MinGW/GCC, but I try to include cs50 (cs50.c, cs50.h) library, and the compiler can't find it. Help me compile who knows what's going on. I tried to give such command: gcc -LC:\Users\apple\Desktop -lcs50 mario.c But the result is this: c:/mingw/bin/../lib/gcc/mingw32/8.2.0/../../../../mingw32/bin/ld.exe: cannot find -lcs50 collect2.exe: error: ld returned 1 exit status Or: c:/mingw/bin/../lib/gcc/mingw32/8.2.0/../../../..