Results 1 to 6 of 6
  1. #1
    Programming Noob in need of help!

    Member Since
    Jan 19, 2011
    Posts
    4
    Exclamation Programming Noob in need of help!
    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

  2. #2
    Programming Noob in need of help!
    vansmith's Avatar
    Member Since
    Oct 19, 2008
    Location
    Toronto
    Posts
    19,395
    Specs:
    2012 13" MBP (2.5 i5, 8GB)
    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

  3. #3
    Programming Noob in need of help!

    Member Since
    Jan 19, 2011
    Posts
    4
    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?

  4. #4
    Programming Noob in need of help!
    vansmith's Avatar
    Member Since
    Oct 19, 2008
    Location
    Toronto
    Posts
    19,395
    Specs:
    2012 13" MBP (2.5 i5, 8GB)
    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

  5. #5
    Programming Noob in need of help!

    Member Since
    Jan 19, 2011
    Posts
    4
    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.

  6. #6
    Programming Noob in need of help!

    Member Since
    Jan 19, 2011
    Posts
    4
    Thumbs up
    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

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 1
    Last Post: 05-29-2012, 05:32 PM
  2. programming
    By spaghettifier in forum OS X - Development and Darwin
    Replies: 2
    Last Post: 04-10-2009, 12:12 PM
  3. Programming
    By WizzKid in forum OS X - Development and Darwin
    Replies: 27
    Last Post: 11-25-2007, 08:38 AM
  4. <noob> Defragging a Mac? </noob>
    By MiFES in forum Apple Notebooks
    Replies: 3
    Last Post: 02-03-2007, 03:18 PM
  5. C programming
    By juco in forum OS X - Apps and Games
    Replies: 6
    Last Post: 05-19-2006, 06:52 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •