Closed echorashmi closed 4 years ago
Duplicate, found the resolution here:
https://github.com/cs50/libcs50/issues/123
I was using:
make filename.c
Instead would need to use:
clang -o int int.c -lcs50
Still curious how to get it to work with "make" though.
Hello!
This error depends on what you use for a compiler, whether g++
or clang
. If you want to use make
, simply do make filename
without the extension, but the issue with make is that it does not actually link the dynamic libraries ( like cs50
here ). I did a quick search for an option to do that using man make
but I can't anything with the keyword link
.
I'm trying to run this program:
It works fine on the CS50 IDE, though on my local Mac I get this error:
How I installed: I followed the instructions from: https://github.com/cs50/libcs50#from-source-linux-and-mac