Terminal - Static Library

Joined
Sep 22, 2009
Messages
1
Reaction score
0
Points
1
Location
Colorado
I am currently trying to take an online class to learn c programming. This is the online Harvard CS50 class. For this class I need to compile a static library on to my own system. I am using Terminal - Bash and have the version of x-code that came with snow Leopard.

These are the instructions that I was following:

* To compile as a static library on your own system:
* % gcc -c -ggdb -std=c99 cs50.c -o cs50.o
* % ar rcs libcs50.a cs50.o
* % rm -f cs50.o
* % cp cs50.h /usr/local/include
* % cp libcs50.a /usr/local/lib

when I get to the cp cs50.h/usr/local/include, I get the message cp:usr/local/include: No such file or directory.

I've tried to drag these files into lib, but that didn't work. I'm new to the Mac OS, and tried looking for this path but can't seem to find it. I thought about creating these folders but thought I would check here first.

Any ideas?
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top