Seite 181 von 340 ErsteErste ... 81 131 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 231 281 ... LetzteLetzte
Zeige Ergebnis 5.401 bis 5.430 von 10174

C/C++ Programming Help Thread

This is a discussion on C/C++ Programming Help Thread within the PSP Development Forum forums, part of the PSP Development, Hacks, and Homebrew category; You put the forward declaration (sometimes called the prototype) in the header file, not the function, or else you'll get ...

  
  1. #5401
    It's good to be free...
    Points: 10.420, Level: 67
    Level completed: 93%, Points required for next Level: 30
    Overall activity: 0%

    Registriert seit
    Feb 2007
    Beiträge
    2.440
    Points
    10.420
    Level
    67
    Downloads
    0
    Uploads
    0

    Standard

    You put the forward declaration (sometimes called the prototype) in the header file, not the function, or else you'll get a linker error.

    Try something like this

    funcs.cpp:
    Code:
    int myFunc()
    {
      return doSomething();
    }
    main.cpp:
    Code:
    #include "funcs.hpp"
    int main() {
      return myFunc();
    }
    funcs.hpp:
    Code:
    int myFunc();


    Geändert von Archaemic (07-09-2007 um 12:43 PM Uhr)
    pəʇuɒɹɓ ɹoɟ ɓuɪɥʇou əʞɒʇ

  2. #5402
    QJ Gamer Green
    Points: 3.606, Level: 37
    Level completed: 71%, Points required for next Level: 44
    Overall activity: 99,0%

    Registriert seit
    Jul 2007
    Beiträge
    88
    Points
    3.606
    Level
    37
    Downloads
    0
    Uploads
    0

    Standard

    But how does this work?
    Or are you expecting me that ive included the .h already?

  3. #5403
    It's good to be free...
    Points: 10.420, Level: 67
    Level completed: 93%, Points required for next Level: 30
    Overall activity: 0%

    Registriert seit
    Feb 2007
    Beiträge
    2.440
    Points
    10.420
    Level
    67
    Downloads
    0
    Uploads
    0

    Standard

    Oops, forgot that. Hold on, let me edit my post

    Okay, there we go.
    pəʇuɒɹɓ ɹoɟ ɓuɪɥʇou əʞɒʇ

  4. #5404
    QJ Gamer Silver
    Points: 10.263, Level: 67
    Level completed: 54%, Points required for next Level: 187
    Overall activity: 0%

    Registriert seit
    Jun 2006
    Ort
    UK
    Beiträge
    2.326
    Points
    10.263
    Level
    67
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von Archaemic
    You keep track of the x and y of the sprites You don't detect where they are based on the screen.
    What MiG is trying to say is when he renders something in 3D model space, how do you get the screen space co-ordinates.

    The answer is via lots of matrix math. You need to get the x,y,z position of object in model space, multiple it with the view matrix and multiple that result with the perspective matrix. The x and y components of the end result should be the x and y position in screen space.

    In reality, you don't do collision detection this way. You do it in 3D model space, not screen space.

    FistPump nailed it in one.

    Zitat Zitat von FistPump
    Personally, I would use a struct to hold the coordinates of the object. A struct is like a container that you can basically clone to make an object. So if you define a struct and then make an object of that struct, the object will have the same data fields.


    EXAMPLE:
    Code:
    const int MAX_PLAYERS = 2;
    
    struct _Player
    {
    	//x, y, width, height
    	int x, y, w, h;
    	unsigned int color;
    };
    
    
    struct _Player players[MAX_PLAYERS];
    
    //First Square
    players[0].x = 0;
    players[0].y = 0; 
    players[0].w = 50;
    players[0].h = 50;
    
    //Second Square
    players[0].x = 100;
    players[0].y = 100; 
    players[0].w = 50;
    players[0].h = 50;
    
    //Basic Draw Rectangle Function
    drawRectFunction(players[0].x, players[0].y, players[0].w, players[0].h, players[0].color);
    drawRectFunction(players[1].x, players[1].y, players[1].w, players[1].h, players[1].color);
    
    int didCollide(_Player one, _Player two)
    {
    	int collided;
    
    	//collisions
    
    	return collided;
    }
    
    if(pad.Buttons & PSP_CTRL_LEFT)
    {
    	players[0].x --;
    }
    if(pad.Buttons & PSP_CTRL_UP)
    {
    	players[1].y--;
    }

  5. #5405
    QJ Gamer Green
    Points: 3.606, Level: 37
    Level completed: 71%, Points required for next Level: 44
    Overall activity: 99,0%

    Registriert seit
    Jul 2007
    Beiträge
    88
    Points
    3.606
    Level
    37
    Downloads
    0
    Uploads
    0

    Standard

    Why doesnt this work?
    Code:
    int counter = 0;
    SceCtrlData pad;
    
    int main() {
             printf("Counter: %i ", counter);
    
        pspDebugScreenInit();
        SetupCallbacks();
        sceKernelSleepThread(); // Wait for home
        return 0;
    }
    It leaves me with a blank screen. Why doesnt it show: 0?
    Also for an player object, what would be better to use.
    structures, or classes? (like a simple player)
    Just a box, added with physics (collisions, moving, jumping, gravity, etc.)

  6. #5406
    QJ Gamer Green
    Points: 11.300, Level: 70
    Level completed: 13%, Points required for next Level: 350
    Overall activity: 0%

    Registriert seit
    Dec 2006
    Ort
    main();
    Beiträge
    1.071
    Points
    11.300
    Level
    70
    Downloads
    0
    Uploads
    0

    Standard

    Go to PSP-Programming and follow their tutorials before you worry about making a game.

  7. #5407
    QJ Gamer Green
    Points: 3.606, Level: 37
    Level completed: 71%, Points required for next Level: 44
    Overall activity: 99,0%

    Registriert seit
    Jul 2007
    Beiträge
    88
    Points
    3.606
    Level
    37
    Downloads
    0
    Uploads
    0

    Standard

    I waited all that time for that........
    I did go to psp-programming.com, infact thats where I learnt that from.

  8. #5408
    It's good to be free...
    Points: 10.420, Level: 67
    Level completed: 93%, Points required for next Level: 30
    Overall activity: 0%

    Registriert seit
    Feb 2007
    Beiträge
    2.440
    Points
    10.420
    Level
    67
    Downloads
    0
    Uploads
    0

    Standard

    Code:
    int counter = 0;
    
    int main() {
        SetupCallbacks();
        pspDebugScreenInit();
        pspDebugScreenPrintf("Counter: %i ", counter);
        return 0;
        sceKernelSleepThread(); // Wait for home
    }
    Fixed. pspDebugScreenPrintf needs to be after pspDebugScreenInit.
    pəʇuɒɹɓ ɹoɟ ɓuɪɥʇou əʞɒʇ

  9. #5409
    QJ Gamer Green
    Points: 11.300, Level: 70
    Level completed: 13%, Points required for next Level: 350
    Overall activity: 0%

    Registriert seit
    Dec 2006
    Ort
    main();
    Beiträge
    1.071
    Points
    11.300
    Level
    70
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von Beat_Bob
    I waited all that time for that........
    I did go to psp-programming.com, infact thats where I learnt that from.
    No. No you didn't.

  10. #5410
    QJ Gamer Green
    Points: 3.606, Level: 37
    Level completed: 71%, Points required for next Level: 44
    Overall activity: 99,0%

    Registriert seit
    Jul 2007
    Beiträge
    88
    Points
    3.606
    Level
    37
    Downloads
    0
    Uploads
    0

    Standard

    Anyone know about this error?
    [email protected] ~/PSProjects/imager
    $ make
    psp-g++ -I. -I/usr/local/pspdev/psp/sdk/include -O2 -G0 -Wall -I. -I/usr/local/
    spdev/psp/sdk/include -O2 -G0 -Wall -fno-exceptions -fno-rtti -c -o main.o ma
    n.cpp
    main.cpp:8:39: error: graphics.h: No such file or directory
    main.cpp: In function 'int main()':
    main.cpp:49: error: 'initGraphics' was not declared in this scope
    main.cpp:51: error: 'Image' was not declared in this scope
    main.cpp:51: error: 'ourImage' was not declared in this scope
    main.cpp:53: error: 'loadImage' was not declared in this scope
    main.cpp:58: error: 'blitAlphaImageToScreen' was not declared in this scope
    main.cpp:59: error: 'flipScreen' was not declared in this scope
    make: *** [main.o] Error 1

    I did the svn checkout, but it sais it cant find graphics.h
    Huh?
    Geändert von Beat_Bob (07-09-2007 um 09:19 PM Uhr)

  11. #5411
    QJ Gamer Green
    Points: 11.300, Level: 70
    Level completed: 13%, Points required for next Level: 350
    Overall activity: 0%

    Registriert seit
    Dec 2006
    Ort
    main();
    Beiträge
    1.071
    Points
    11.300
    Level
    70
    Downloads
    0
    Uploads
    0

    Standard

    Yes it did. If you are too stupid to follow those tutorials, get a book on C and get reading.

  12. #5412
    QJ Gamer Green
    Points: 3.606, Level: 37
    Level completed: 71%, Points required for next Level: 44
    Overall activity: 99,0%

    Registriert seit
    Jul 2007
    Beiträge
    88
    Points
    3.606
    Level
    37
    Downloads
    0
    Uploads
    0

    Standard

    Could you answer my next question. (what a nice forum)

  13. #5413
    QJ Gamer Green
    Points: 11.300, Level: 70
    Level completed: 13%, Points required for next Level: 350
    Overall activity: 0%

    Registriert seit
    Dec 2006
    Ort
    main();
    Beiträge
    1.071
    Points
    11.300
    Level
    70
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von Beat_Bob
    Could you answer my next question. (what a nice forum)
    Isn't it? Stop complaining.

    Code:
    extern "C" {
    #include "graphics.h"
    }
    That or graphics.h doesn't exist at all.

  14. #5414
    QJ Gamer Green
    Points: 3.606, Level: 37
    Level completed: 71%, Points required for next Level: 44
    Overall activity: 99,0%

    Registriert seit
    Jul 2007
    Beiträge
    88
    Points
    3.606
    Level
    37
    Downloads
    0
    Uploads
    0

    Standard

    Now I have a two more errors, but the graphics.h one is gone:
    Code:
    $ make
    psp-gcc -I. -I/usr/local/pspdev/psp/sdk/include -O2 -G0 -Wall -D_PSP_FW_VERSION=
    150   -c -o main.o main.c
    main.c:8: error: expected identifier or '(' before string constant
    main.c:8: error: stray '#' in program
    main.c: In function 'main':
    main.c:49: warning: implicit declaration of function 'initGraphics'
    main.c:51: error: 'Image' undeclared (first use in this function)
    main.c:51: error: (Each undeclared identifier is reported only once
    main.c:51: error: for each function it appears in.)
    main.c:51: error: 'ourImage' undeclared (first use in this function)
    main.c:53: warning: implicit declaration of function 'loadImage'
    main.c:58: warning: implicit declaration of function 'blitAlphaImageToScreen'
    main.c:59: warning: implicit declaration of function 'flipScreen'
    make: *** [main.o] Error 1
    My main.c:
    Spoiler for Spoil:

    #include <pspdisplay.h>
    #include <pspctrl.h> // Allows us to read input from the PSP's keys
    #include <pspkernel.h>
    #include <pspdebug.h>
    #include <pspgu.h>
    #include <png.h> // <Manipulate the PNG Image files
    #include <stdio.h> // Has some C functions (sprintf() to parse strings)
    extern "C" {#include "graphics.h"}

    #define printf pspDebugScreenPrintf
    #define MAX(X, Y) ((X) > (Y) ? (X) : (Y)) // Returns X if greater than Y, or returns Y if less

    PSP_MODULE_INFO("Image Displayer", 0, 1, 1);

    /* Exit callback */
    int exit_callback(int arg1, int arg2, void *common) {
    sceKernelExitGame();
    return 0;
    }

    /* Callback thread */
    int CallbackThread(SceSize args, void *argp) {
    int cbid;

    cbid = sceKernelCreateCallback(" Exit Callback", exit_callback, NULL);
    sceKernelRegisterExitCall back(cbid);

    sceKernelSleepThreadCB();

    return 0;
    }

    /* Sets up the callback thread and returns its thread id */
    int SetupCallbacks(void) {
    int thid = 0;

    thid = sceKernelCreateThread("up date_thread", CallbackThread, 0x11, 0xFA0, 0, 0);
    if(thid >= 0) {
    sceKernelStartThread(thid , 0, 0);
    }

    return thid;
    }


    int main() {
    SetupCallbacks();
    pspDebugScreenInit();
    initGraphics();
    char buffer[200]; // Block of memory of 200 variables for a string (maximum length it can be)
    Image* ourImage;
    sprintf(buffer, "ourImage.png");
    ourImage = loadImage(buffer);
    if(ourImage)
    {
    int x = 0, y = 0;
    sceDisplayWaitVblankStart ();
    blitAlphaImageToScreen(0 ,0 ,32 , 32, ourImage, x, y);
    flipScreen();
    }


    sceKernelSleepThread(); // Wait for home
    return 0;
    }

    I did the svn checkout, how could it not exist?
    Or is graphics.h a seperate file and needs to be downloaded seperately? If so could
    someone provide a link?

  15. #5415
    QJ Gamer Green
    Points: 11.300, Level: 70
    Level completed: 13%, Points required for next Level: 350
    Overall activity: 0%

    Registriert seit
    Dec 2006
    Ort
    main();
    Beiträge
    1.071
    Points
    11.300
    Level
    70
    Downloads
    0
    Uploads
    0

    Standard

    Try,
    Code:
    extern "C" { 
    #include "graphics.h" 
    }
    As I said, as I believe it isn't parsing the '{#' correctly.

  16. #5416
    QJ Gamer Green
    Points: 3.606, Level: 37
    Level completed: 71%, Points required for next Level: 44
    Overall activity: 99,0%

    Registriert seit
    Jul 2007
    Beiträge
    88
    Points
    3.606
    Level
    37
    Downloads
    0
    Uploads
    0

    Standard

    Well I did that and now heres my error list:
    Code:
    $ make
    psp-gcc -I. -I/usr/local/pspdev/psp/sdk/include -O2 -G0 -Wall -D_PSP_FW_VERSION=
    150   -c -o main.o main.c
    main.c:8: error: expected identifier or '(' before string constant
    main.c:9:23: error: graphics.h: No such file or directory
    main.c: In function 'main':
    main.c:51: warning: implicit declaration of function 'initGraphics'
    main.c:53: error: 'Image' undeclared (first use in this function)
    main.c:53: error: (Each undeclared identifier is reported only once
    main.c:53: error: for each function it appears in.)
    main.c:53: error: 'ourImage' undeclared (first use in this function)
    main.c:55: warning: implicit declaration of function 'loadImage'
    main.c:60: warning: implicit declaration of function 'blitAlphaImageToScreen'
    main.c:61: warning: implicit declaration of function 'flipScreen'
    make: *** [main.o] Error 1

  17. #5417
    QJ Gamer Green
    Points: 11.300, Level: 70
    Level completed: 13%, Points required for next Level: 350
    Overall activity: 0%

    Registriert seit
    Dec 2006
    Ort
    main();
    Beiträge
    1.071
    Points
    11.300
    Level
    70
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von Beat_Bob
    Now I have a two more errors, but the graphics.h one is gone:
    Code:
    $ make
    psp-gcc -I. -I/usr/local/pspdev/psp/sdk/include -O2 -G0 -Wall -D_PSP_FW_VERSION=
    150   -c -o main.o main.c
    main.c:8: error: expected identifier or '(' before string constant
    main.c:8: error: stray '#' in program
    main.c: In function 'main':
    main.c:49: warning: implicit declaration of function 'initGraphics'
    main.c:51: error: 'Image' undeclared (first use in this function)
    main.c:51: error: (Each undeclared identifier is reported only once
    main.c:51: error: for each function it appears in.)
    main.c:51: error: 'ourImage' undeclared (first use in this function)
    main.c:53: warning: implicit declaration of function 'loadImage'
    main.c:58: warning: implicit declaration of function 'blitAlphaImageToScreen'
    main.c:59: warning: implicit declaration of function 'flipScreen'
    make: *** [main.o] Error 1
    My main.c:
    Spoiler for Spoil:

    #include <pspdisplay.h>
    #include <pspctrl.h> // Allows us to read input from the PSP's keys
    #include <pspkernel.h>
    #include <pspdebug.h>
    #include <pspgu.h>
    #include <png.h> // <Manipulate the PNG Image files
    #include <stdio.h> // Has some C functions (sprintf() to parse strings)
    extern "C" {#include "graphics.h"}

    #define printf pspDebugScreenPrintf
    #define MAX(X, Y) ((X) > (Y) ? (X) : (Y)) // Returns X if greater than Y, or returns Y if less

    PSP_MODULE_INFO("Image Displayer", 0, 1, 1);

    /* Exit callback */
    int exit_callback(int arg1, int arg2, void *common) {
    sceKernelExitGame();
    return 0;
    }

    /* Callback thread */
    int CallbackThread(SceSize args, void *argp) {
    int cbid;

    cbid = sceKernelCreateCallback(" Exit Callback", exit_callback, NULL);
    sceKernelRegisterExitCall back(cbid);

    sceKernelSleepThreadCB();

    return 0;
    }

    /* Sets up the callback thread and returns its thread id */
    int SetupCallbacks(void) {
    int thid = 0;

    thid = sceKernelCreateThread("up date_thread", CallbackThread, 0x11, 0xFA0, 0, 0);
    if(thid >= 0) {
    sceKernelStartThread(thid , 0, 0);
    }

    return thid;
    }


    int main() {
    SetupCallbacks();
    pspDebugScreenInit();
    initGraphics();
    char buffer[200]; // Block of memory of 200 variables for a string (maximum length it can be)
    Image* ourImage;
    sprintf(buffer, "ourImage.png");
    ourImage = loadImage(buffer);
    if(ourImage)
    {
    int x = 0, y = 0;
    sceDisplayWaitVblankStart ();
    blitAlphaImageToScreen(0 ,0 ,32 , 32, ourImage, x, y);
    flipScreen();
    }


    sceKernelSleepThread(); // Wait for home
    return 0;
    }

    I did the svn checkout, how could it not exist?
    Or is graphics.h a seperate file and needs to be downloaded seperately? If so could
    someone provide a link?
    Argh! Lesson 4, PSP-Programming tutorials. I thought you went there first?

  18. #5418
    QJ Gamer Green
    Points: 3.606, Level: 37
    Level completed: 71%, Points required for next Level: 44
    Overall activity: 99,0%

    Registriert seit
    Jul 2007
    Beiträge
    88
    Points
    3.606
    Level
    37
    Downloads
    0
    Uploads
    0

    Standard

    I couldnt find the link anywhere.
    I assumed it was put in the svn checkout download.

  19. #5419
    QJ Gamer Green
    Points: 11.300, Level: 70
    Level completed: 13%, Points required for next Level: 350
    Overall activity: 0%

    Registriert seit
    Dec 2006
    Ort
    main();
    Beiträge
    1.071
    Points
    11.300
    Level
    70
    Downloads
    0
    Uploads
    0

  20. #5420
    QJ Gamer Green
    Points: 3.606, Level: 37
    Level completed: 71%, Points required for next Level: 44
    Overall activity: 99,0%

    Registriert seit
    Jul 2007
    Beiträge
    88
    Points
    3.606
    Level
    37
    Downloads
    0
    Uploads
    0

    Standard

    I made a folder on my user directory called graphics, put the files in there,
    ran the batch and now heres what I got:
    Code:
    $ make
    psp-gcc -I. -I/usr/local/pspdev/psp/sdk/include -O2 -G0 -Wall -D_PSP_FW_VERSION
    150   -c -o main.o main.c
    main.c:8: error: expected identifier or '(' before string constant
    main.c:9:22: error: graphics.h: No such file or directory
    main.c: In function 'main':
    main.c:51: warning: implicit declaration of function 'initGraphics'
    main.c:53: error: 'Image' undeclared (first use in this function)
    main.c:53: error: (Each undeclared identifier is reported only once
    main.c:53: error: for each function it appears in.)
    main.c:53: error: 'ourImage' undeclared (first use in this function)
    main.c:55: warning: implicit declaration of function 'loadImage'
    main.c:60: warning: implicit declaration of function 'blitAlphaImageToScreen'
    main.c:61: warning: implicit declaration of function 'flipScreen'
    make: *** [main.o] Error 1
    (my main.c is in my other post)
    Also do I need to be worried about these warnings?

  21. #5421
    QJ Gamer Green
    Points: 11.300, Level: 70
    Level completed: 13%, Points required for next Level: 350
    Overall activity: 0%

    Registriert seit
    Dec 2006
    Ort
    main();
    Beiträge
    1.071
    Points
    11.300
    Level
    70
    Downloads
    0
    Uploads
    0

    Standard

    You should always be worried about warnings.

    Put graphics.c/h and framebuffer.c/h into the project directory, then make sure to add 'graphics.o' and 'framebuffer.o' to the OBJS line in your makefile.

  22. #5422
    QJ Gamer Green
    Points: 3.606, Level: 37
    Level completed: 71%, Points required for next Level: 44
    Overall activity: 99,0%

    Registriert seit
    Jul 2007
    Beiträge
    88
    Points
    3.606
    Level
    37
    Downloads
    0
    Uploads
    0

    Standard

    Nope, still didnt work.
    I dont think it matters but my project directory name is PSProjects.
    Also heres my makefile:
    Code:
    TARGET = hello
    OBJS = main.o graphics.o framebuffer.o
    
    CFLAGS = -O2 -G0 -Wall
    CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti
    ASFLAGS = $(CFLAGS)
    
    LIBDIR =
    LIBS = -lpspgu -lpng -lz -lm
    LDFLAGS =
    
    EXTRA_TARGETS = EBOOT.PBP
    PSP_EBOOT_TITLE = Image Example
    
    PSPSDK=$(shell psp-config --pspsdk-path)
    include $(PSPSDK)/lib/build.mak
    Errors:
    Code:
    $ make
    psp-gcc -I. -I/usr/local/pspdev/psp/sdk/include -O2 -G0 -Wall -D_PSP_FW_VERSION
    150   -c -o main.o main.c
    main.c:9:22: error: graphics.h: No such file or directory
    main.c: In function 'main':
    main.c:50: error: 'Image' undeclared (first use in this function)
    main.c:50: error: (Each undeclared identifier is reported only once
    main.c:50: error: for each function it appears in.)
    main.c:50: error: 'ourImage' undeclared (first use in this function)
    main.c:53: warning: implicit declaration of function 'initGraphics'
    main.c:55: warning: implicit declaration of function 'loadImage'
    main.c:60: warning: implicit declaration of function 'blitAlphaImageToScreen'
    main.c:61: warning: implicit declaration of function 'flipScreen'
    make: *** [main.o] Error 1

  23. #5423
    QJ Gamer Green
    Points: 11.300, Level: 70
    Level completed: 13%, Points required for next Level: 350
    Overall activity: 0%

    Registriert seit
    Dec 2006
    Ort
    main();
    Beiträge
    1.071
    Points
    11.300
    Level
    70
    Downloads
    0
    Uploads
    0

    Standard

    The quotes in the #include line tell the compiler that the header file is in the same directory as the current file.

    So, if you have you main.c in 'blah/PSProjects/myProject/', graphics.c/h and framebuffer.c/h need to be in that directory as well.



    I'm going to bed, so you may have to wait for yaustar if you are still having problems.

  24. #5424
    QJ Gamer Green
    Points: 3.606, Level: 37
    Level completed: 71%, Points required for next Level: 44
    Overall activity: 99,0%

    Registriert seit
    Jul 2007
    Beiträge
    88
    Points
    3.606
    Level
    37
    Downloads
    0
    Uploads
    0

    Standard

    Ah thanks.
    Also the warnings do I really need to be worried about them?
    What could happen? (depending on the warnings)

  25. #5425
    MiG
    MiG ist offline
    QJ Gamer Blue
    Points: 5.848, Level: 49
    Level completed: 49%, Points required for next Level: 102
    Overall activity: 0%

    Registriert seit
    Jun 2006
    Ort
    UK
    Beiträge
    499
    Points
    5.848
    Level
    49
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von Beat_Bob
    Ah thanks.
    Also the warnings do I really need to be worried about them?
    What could happen? (depending on the warnings)
    loads of things but your getting warnings because you have no idea what your doing, and missing a simple include.

    Sorry, it seems i'm being a bit harsh, but make sure your code is word for word that of the tutorial.

  26. #5426
    QJ Gamer Green
    Points: 9.165, Level: 64
    Level completed: 39%, Points required for next Level: 185
    Overall activity: 0%

    Registriert seit
    Apr 2006
    Ort
    England ~¦¦¦|+|¦¦¦~
    Beiträge
    1.112
    Points
    9.165
    Level
    64
    My Mood
    Bored
    Downloads
    0
    Uploads
    0

    Standard

    main.c:9:22: error: graphics.h: No such file or directory
    isnt it bloody obvious? It cant find 'graphics.h'! check that its actually there and check that you included it correctly.
    ...Just Returned To The Scene...

  27. #5427
    QJ Gamer Green
    Points: 5.795, Level: 49
    Level completed: 23%, Points required for next Level: 155
    Overall activity: 0%

    Registriert seit
    Sep 2006
    Ort
    Cape Town, South Africa
    Beiträge
    714
    Points
    5.795
    Level
    49
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von coolguy5678
    How can I install libpng for the compiler thingy built into CSP Development Studio?
    Does anyone know?

  28. #5428
    I'm back!
    Points: 8.236, Level: 61
    Level completed: 29%, Points required for next Level: 214
    Overall activity: 99,0%

    Registriert seit
    Feb 2007
    Ort
    England
    Beiträge
    902
    Points
    8.236
    Level
    61
    Downloads
    0
    Uploads
    0

    Standard

    Can someone point me in the direction of where I can find a tutorial or something on using sceIoAssign? I have some ideas I want to test out with it and flash... but needless to say, its flash and I want to make damn sure I can't mess up something!

    Thanks.
    -Aura
    Last.fm | Deviant Art | First working OS picture

    Zitat Zitat von nickxab Beitrag anzeigen
    I will beat myself. :p

  29. #5429
    QJ Gamer Bronze
    Points: 7.047, Level: 55
    Level completed: 49%, Points required for next Level: 103
    Overall activity: 0%

    Registriert seit
    Jun 2006
    Beiträge
    144
    Points
    7.047
    Level
    55
    Downloads
    0
    Uploads
    0

    Standard

    Search on the PSP forum on http://forums.ps2dev.org . Don't post there or you'd get flamed instantly, though... :)
    Adrahil - Software architect and specialist in Reverse Engineering.
    Spoiler for Guilt of a Dev:
    17:17 < InsertWittyName> Can't pin user error on a dev ;)
    17:18 < InsertWittyName> Lesson learnt on both sides I would say.
    17:18 < InsertWittyName> You learnt to treat the end-user as a retarded fish.
    17:18 < InsertWittyName> They learnt to read readme's ;)

    Spoiler for me:
    17:12 <+dot_blank> are you the long haired pimp ;)

  30. #5430
    QJ Gamer Green
    Points: 11.300, Level: 70
    Level completed: 13%, Points required for next Level: 350
    Overall activity: 0%

    Registriert seit
    Dec 2006
    Ort
    main();
    Beiträge
    1.071
    Points
    11.300
    Level
    70
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von adrahil
    Search on the PSP forum on http://forums.ps2dev.org . Don't post there or you'd get flamed instantly, though... :)
    Yeah, adrahi's right. Regardless, ps2dev is the best. place. ever.


 

Tags for this Thread

Forumregeln

  • Es ist Ihnen nicht erlaubt, neue Themen zu verfassen.
  • Es ist Ihnen nicht erlaubt, auf Beiträge zu antworten.
  • Es ist Ihnen nicht erlaubt, Anhänge hochzuladen.
  • Es ist Ihnen nicht erlaubt, Ihre Beiträge zu bearbeiten.
  •  





Alle Zeitangaben in WEZ -8. Es ist jetzt 09:27 PM Uhr.

Use of this Web site constitutes acceptance of the TERMS & CONDITIONS and PRIVACY POLICY
Copyright © , Caputo Media, LLC. All Rights Reserved. Cluster .