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 - Operating System General OS operation information and support

Programming Noob in need of help!


Post Reply New Thread Subscribe

 
Thread Tools
GavMcG

 
Member Since: Jan 19, 2011
Posts: 4
GavMcG is on a distinguished road

GavMcG is offline
Hey guys,
As you can see from the title I am new to this whole idea of programming. I have just started the basics in college on how to write and run code. Currently in college we are using Smultron to write the code.
I wanted to be able to work on coding at home and as a result I have downloaded Smultron to my MBP... the problem now is that it wont work.

I created a file today and then went into Terminal to try and run it... We were told to type "make (project name)" and enter that but when I do that it says
"make: *** No rule to make target `practical1'. Stop."

I have downloaded xCode already so I don't that is the problem.

Can someone tell me how to get the make command to work???

*Go easy on me... It's my first day!* lol
QUOTE Thanks
vansmith

 
vansmith's Avatar
 
Member Since: Oct 19, 2008
Location: Toronto
Posts: 18,009
vansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond repute
Mac Specs: 2012 13" MBP (2.5 i5, 8GB)

vansmith is offline
Not sure (not a C/C++ person here) but check your Makefile for any errors. That might be a good place to start. Other than that, I'll have to let the C/C++ developers here step in.

Important Links: Community Guidelines : Use the reputation system if you've been helped.
M-F Blog :: Write for the blog
Writing a Quality Post
QUOTE Thanks
GavMcG

 
Member Since: Jan 19, 2011
Posts: 4
GavMcG is on a distinguished road

GavMcG is offline
Quote:
Originally Posted by vansmith View Post
Not sure (not a C/C++ person here) but check your Makefile for any errors. That might be a good place to start. Other than that, I'll have to let the C/C++ developers here step in.
Ohhh that could be a problem... How do I create a makefile?
QUOTE Thanks
vansmith

 
vansmith's Avatar
 
Member Since: Oct 19, 2008
Location: Toronto
Posts: 18,009
vansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond repute
Mac Specs: 2012 13" MBP (2.5 i5, 8GB)

vansmith is offline
The make tool only works if you have a makefile. I'm sure there are many tutorials online on how to write makefiles. Surely your professor has/will cover(ed) this.

Important Links: Community Guidelines : Use the reputation system if you've been helped.
M-F Blog :: Write for the blog
Writing a Quality Post
QUOTE Thanks
GavMcG

 
Member Since: Jan 19, 2011
Posts: 4
GavMcG is on a distinguished road

GavMcG is offline
Quote:
Originally Posted by vansmith View Post
Surely your professor has/will cover(ed) this.
Well no... We work in the labs in university which have already been set-up. I wanted to work on questions at home as well so that I can improve at a faster rate.
I will look up some tutorials now for the makefile creation.
QUOTE Thanks
GavMcG

 
Member Since: Jan 19, 2011
Posts: 4
GavMcG is on a distinguished road

GavMcG is offline
Thanks for all you help.

Thanks to the guys over at mac-rumors forums for figuring out that my problem was that I wasn't saving it to the right directory. I was saving the file to my desktop and terminal was looking for it in "USERNAME"

Thank you again.

I'm really excited to get stuck into some work in it.

PROBLEM SOLVED,
Gav
QUOTE Thanks

Post Reply New Thread Subscribe


« Help with booting a powerbook off of an sd card | Help upgrading »
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
Mackbook or MBP for programming smilemoveon Apple Notebooks 5 02-13-2008 08:55 AM
Java Programming at School pr0wn3r Web Design and Hosting 5 11-25-2007 10:35 PM
Mac Programming frewegooh Switcher Hangout 20 05-01-2007 02:32 PM
newb vs. noob... a friendly reminder in the differences and connotations coach_z Schweb's Lounge 0 05-05-2006 03:51 AM
Programming on the Mac natey OS X - Development and Darwin 4 06-29-2004 06:05 AM

All times are GMT -4. The time now is 10:19 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?