New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

 
Start a Discussion
 

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
OS X - Development and Darwin Discussion and questions about development for Mac OS X.

Terminal - Static Library


Post Reply New Thread Subscribe

 
Thread Tools
xjameyx

 
xjameyx's Avatar
 
Member Since: Sep 22, 2009
Location: Colorado
Posts: 1
xjameyx is on a distinguished road

xjameyx is offline
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


« "stubs.h" library available? | Applescript for sending selection as new Mail »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
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 09:12 AM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?