make
: builds dynamic library
Development
// enable self-linked titles:sectlinks: = CS50 IDE Offline. Normally, the CS50 IDE requires a constant connection to the internet. This may not fit users with slow or unstable internet connections, or those who want to continue using the IDE offline for any number of reasons. Sep 05, 2019 This is CS50's library for Python. Contribute to cs50/python-cs50 development by creating an account on GitHub. I will try to summarise my experience with windows, linux and MAC. I have used windows and linux(ubuntu and kubuntu) extensively during my undergrad and using Mac. CS50 IDE Offline¶. Normally, CS50 IDE requires a constant connection to the internet. This may not fit users with slow or unstable internet connections, or those who want to continue using the IDE offline for any number of reasons.
Aug 17, 2019 CS50.h for local compiling (MAC) 3. Need assistance with PSET1. PostgreSQL migration issues.h for local compiling (MAC) submitted 22 hours ago by jrgoose. I was wondering if anyone has found a way to install CS50.h on OSX Mojave to include it when writing C on Sublime or Xcode? When compiling you have to link the CS50’s library.
make deb
: builds source deb
make install
: installs the library under /usr/local
by default (set DESTDIR
to change that)
Installation
Ubuntu
Fedora
From Source (Linux and Mac)
- Download the latest release from https://github.com/cs50/libcs50/releases
- Extract
libcs50-*.*
cd libcs50-*
sudo make install
By default, we install to
/usr/local
. If you'd like to change the installation location, runsudo DESTDIR=/path/to/install make install
as desired.
Troubleshooting
- If, when compiling a program, you see
/usr/bin/ld: cannot find -lcs50
:Addexport LIBRARY_PATH=/usr/local/lib
to your.bashrc
. - If, when compiling a program, you see
fatal error: 'cs50.h' file not found
:Addexport C_INCLUDE_PATH=/usr/local/include
to your.bashrc
. - If, when executing a program, you see
error while loading shared libraries: libcs50.so.8: cannot open shared object file: No such file or directory
:Addexport LD_LIBRARY_PATH=/usr/local/lib
to your.bashrc
.
Close and reopen any terminal windows.
Usage
Link with
-lcs50
.
Documentation
See
man get_*
after installation, or CS50 Reference!
TODO
- Add tests.