Skip to main content
Fix grammar
Source Link

The library interface (cs50.h) and the implementation (cs50.c) needs to be compiled into either a library object file (.o), a shared object file (.so), or an archive file (.a) in order to be linked into other programs.

The following command should yield aan object file that could be statically linklinked it into other programs assuming both cs50.h and cs50.c are present in the current working directory.

cc -c -o cs50.o cs50.c

The resulting object file (cs50.o) should then be placed ideally under /usr/local/lib/ while the implementation file (cs50.h) should be placed under /usr/local/include/ with 644 permission preferably.

Alternately, following the instructions outlined at cs50/libcs50 will yield an equivalent denouement but with relatively less complication.

The library interface (cs50.h) and the implementation (cs50.c) needs to be compiled into either a library object file (.o), a shared object file (.so), or an archive file (.a) in order to be linked into other programs.

The following command should yield a object file that could statically link it into other programs assuming both cs50.h and cs50.c are present in the current working directory.

cc -c -o cs50.o cs50.c

The resulting object file (cs50.o) should then be placed ideally under /usr/local/lib/ while the implementation file (cs50.h) should be placed under /usr/local/include/ with 644 permission preferably.

Alternately, following the instructions outlined at cs50/libcs50 will yield an equivalent denouement but with relatively less complication.

The library interface (cs50.h) and the implementation (cs50.c) needs to be compiled into either a library object file (.o), a shared object file (.so), or an archive file (.a) in order to be linked into other programs.

The following command should yield an object file that could be statically linked it into other programs assuming both cs50.h and cs50.c are present in the current working directory.

cc -c -o cs50.o cs50.c

The resulting object file (cs50.o) should then be placed ideally under /usr/local/lib/ while the implementation file (cs50.h) should be placed under /usr/local/include/ with 644 permission preferably.

Alternately, following the instructions outlined at cs50/libcs50 will yield an equivalent denouement but with relatively less complication.

Source Link

The library interface (cs50.h) and the implementation (cs50.c) needs to be compiled into either a library object file (.o), a shared object file (.so), or an archive file (.a) in order to be linked into other programs.

The following command should yield a object file that could statically link it into other programs assuming both cs50.h and cs50.c are present in the current working directory.

cc -c -o cs50.o cs50.c

The resulting object file (cs50.o) should then be placed ideally under /usr/local/lib/ while the implementation file (cs50.h) should be placed under /usr/local/include/ with 644 permission preferably.

Alternately, following the instructions outlined at cs50/libcs50 will yield an equivalent denouement but with relatively less complication.