| OS X - Development and Darwin Discussion and questions about development for Mac OS X. |
| Post Reply | New Thread | Subscribe |
|
|
Thread Tools |
![]() Member Since: Sep 22, 2009
Location: Colorado
Posts: 1
![]() |
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? |
| QUOTE Thanks | |
| Post Reply | New Thread | Subscribe |
| Thread Tools | |
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
|
|
|
|
|||||||
Thread |
Thread Starter |
Forum |
Replies |
Last Post |
| XCode static library linking ld error | MSalman | OS X - Development and Darwin | 3 | 11-05-2008 04:40 PM |
| iTunes Tips And Tricks | RJgamer | iPod Hardware and Accessories | 2 | 07-12-2007 11:59 AM |
| Just How Secure Are the 'Reset Safari' & 'Erase Free Space' Facility? | scoot | OS X - Operating System | 3 | 05-30-2007 05:28 PM |
| 100s of crashes every time I update library | wealcan | iPod Hardware and Accessories | 1 | 04-28-2007 12:26 AM |
All times are GMT -4. The time now is 08:28 PM.
Powered by vBulletin