Results 1 to 7 of 7

Thread: c++ help

                  
   
  1. #1
    DCEmu Regular weirdelf's Avatar
    Join Date
    May 2006
    Location
    London
    Posts
    494
    Rep Power
    95

    Default c++ help

    I have triedloads of different c++ tutorials. At the end of them it always says to type "make". When I do this it says that there is no specified target and doesn't do anything. I read all of the tutorials carefully and don't know what I have done wrong

  2. #2
    DCEmu Newbie
    Join Date
    Nov 2005
    Location
    Germany
    Posts
    59
    Rep Power
    0

    Default

    you need to have a *nix developement environment installed for this. Try this:

    http://www.psp-programming.com/tutorials/c/lesson01.htm


    PS: The installation of the toolchain took 2 and a half hours on my 1,5Ghz system, not 4hours on a 3Ghz (as stated in the tutorial).

  3. #3
    DCEmu Regular weirdelf's Avatar
    Join Date
    May 2006
    Location
    London
    Posts
    494
    Rep Power
    95

    Default

    I already have these things

  4. #4
    DCEmu Regular psiko_scweek's Avatar
    Join Date
    Apr 2006
    Posts
    315
    Rep Power
    71

    Default try this

    one thing you could make sure is your file...

    make sure its somthing like

    main.cpp

    not

    main.cpp.txt

    also make sure in your makefile, you have it set up so it states that the OBJS is

    main.o

    of course if your file is named anything other than main be sure to update the Makfile.

    oh yeah, one last thing.

    make sure your makefile is just Makefile not Makefile.txt or Makefile.cpp just plain Makefile.

    those should work

  5. #5
    DCEmu Regular weirdelf's Avatar
    Join Date
    May 2006
    Location
    London
    Posts
    494
    Rep Power
    95

    Default

    thanks, will try that

  6. #6
    DCEmu Regular weirdelf's Avatar
    Join Date
    May 2006
    Location
    London
    Posts
    494
    Rep Power
    95

    Default

    I have checked all these things and found the problem is the my Makefile is Makefile.txt. But I dont know how to make it so it is not .txt

  7. #7
    DCEmu Regular psiko_scweek's Avatar
    Join Date
    Apr 2006
    Posts
    315
    Rep Power
    71

    Default ok!

    alright now that we know what the problem is we can work on getting it solved!

    (im going to assume your using windows)

    alright if it acutally says Makefile.txt when you lookat the file in windows, you can highlight the file by clicking on it, press the F2 key, so your renamng it and then just delete the ".txt" at the end.

    now if it doesnt say ".txt" at the end here is how to do it, open the folder that has the Makefile, click on Tools -> Folder Optons. That will bring up a dialouge box, the second tab will say "View" click on that and toward the middle you will see a bunch of checkmarks and radio buttons, click on the box that says "Hide Extensions of Known File Types" so that it is no longer checked. Now of course hit apply and exit and now it will actually say "Makefile.txt" so you can follow the instructions above.

    Please note, windows will ask you if your sure that you want to change the extension to a possible unusable type, please click on YES.

Thread Information

Users Browsing this Thread

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

Bookmarks

Posting Permissions

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