Thread: Terminal - Static Library
09-22-2009, 12:58 PM #1Terminal - Static Library
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.
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
By anair in forum iPhone Hardware and AccessoriesReplies: 0Last Post: 10-09-2013, 03:53 AM
By anair in forum iOS DevelopmentReplies: 0Last Post: 10-09-2013, 03:53 AM
By Genuisis in forum OS X - Operating SystemReplies: 3Last Post: 10-14-2012, 08:03 AM
By manytentacles in forum OS X - Operating SystemReplies: 1Last Post: 02-17-2012, 03:30 PM
By MSalman in forum OS X - Development and DarwinReplies: 3Last Post: 11-05-2008, 05:40 PM