Page 1 of 2 12 LastLast
Results 1 to 10 of 16

Thread: PSP C++ Help

                  
   
  1. #1
    DCEmu Rookie
    Join Date
    May 2007
    Location
    Under your Bed
    Posts
    168
    Rep Power
    0

    Default PSP C++ Help

    I was following this tutorial
    http://www.psp-programming.com/tutorials/c/lesson04.htm
    i finished it and the previous tutorials, but when i try to compile it i get this list error of errors, any help would be greatly apprecitiated.

  2. #2
    PSP User Saracchini's Avatar
    Join Date
    Dec 2006
    Location
    Bristol - UK
    Posts
    293
    Rep Power
    65

    Default

    The compiler doesnt found graphics.h. So it canīt compile your source code because you use some data structures from graphics library. Check your include paths .

  3. #3
    DCEmu Rookie
    Join Date
    May 2007
    Location
    Under your Bed
    Posts
    168
    Rep Power
    0

    Default

    Yes I know, but in the tutorial it said to type
    #include "graphics.h" in quotations, indicationg that it is in the project folder not include.Thats what the tutotial said, and if you are right what do i have to do?

  4. #4
    PSP User Saracchini's Avatar
    Join Date
    Dec 2006
    Location
    Bristol - UK
    Posts
    293
    Rep Power
    65

    Default

    If you have graphics.h in the include directory of GCC change the command to "#include <graphics.h>" (whitout " ). If you dont... well... your GCC instalation doesnīt had the graphics library of PSP... even if you copy graphics.h to your include directory you will have linker errors.

  5. #5
    DCEmu Rookie
    Join Date
    May 2007
    Location
    Under your Bed
    Posts
    168
    Rep Power
    0

    Default

    Where is the GCC directory, and if i don't have what must i do next?(I am using PSPDev if you needed to know that)
    Thank You for helping me this far.

  6. #6
    DCEmu Coder
    Join Date
    Aug 2006
    Location
    Bloomington, IN
    Age
    40
    Posts
    268
    Rep Power
    69

    Default

    Saracchini; If you're going to try to help him you should at least look at what he's doing and not just give arbitrary advice :/ Something like "graphics.h" would never be part of the standard GCC headers.

    thehumanidiot; You missed the part on page 2 (near the top) where it told you to download and extract the supporting files.
    http://gpsp-dev.blogspot.com/

    I haven't quit gpSP, just put it on hiatus for a while.

    Games like Super Mario Advance 3, Riviera and Sword of Mana actually DO work in gpSP, believe it or not. If they don't work for you then you're using the faulty BIOS. Don't argue with me, it's true; the sooner you accept this the sooner you can move on.

  7. #7
    DCEmu Rookie
    Join Date
    May 2007
    Location
    Under your Bed
    Posts
    168
    Rep Power
    0

    Default

    Ok thank you very much for pointing that out, BUT now i get this error.

  8. #8
    DCEmu Rookie
    Join Date
    May 2007
    Location
    Under your Bed
    Posts
    168
    Rep Power
    0

    Default

    anyone??? plz help

  9. #9
    DCEmu Coder
    Join Date
    Aug 2006
    Posts
    343
    Rep Power
    66

    Default

    Looks like you only copied the graphics.h, not the graphics.c (or graphics.cpp). Did you extract ALL the support files?

  10. #10
    DCEmu Rookie
    Join Date
    May 2007
    Location
    Under your Bed
    Posts
    168
    Rep Power
    0

    Default

    yes i extracted them all, but i don't know if i put them in the right place.I am using pspdev, but in the tutorial they are using cygwin, i put the files in C:\pspdev\psp\include

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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
  •