Seite 156 von 340 ErsteErste ... 56 106 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 206 256 ... LetzteLetzte
Zeige Ergebnis 4.651 bis 4.680 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; Zitat von MrChaos makefile Code: TARGET = hello OBJS = main.cpp CFLAGS = -O2 -G0 -Wall CXXFLAGS = $(CFLAGS) -fno-exceptions ...

  
  1. #4651
    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 MrChaos
    makefile

    Code:
    TARGET = hello
    OBJS = main.cpp
    
    CFLAGS = -O2 -G0 -Wall
    CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti
    ASFLAGS = $(CFLAGS)
    
    EXTRA_TARGETS = EBOOT.PBP
    PSP_EBOOT_TITLE = Hello World Test
    
    PSPSDK=$(shell psp-config --pspsdk-path)
    include $(PSPSDK)/lib/build.mak
    Code:
    OBJS = main.cpp
    Should be:
    Code:
    OBJS = main.o



  2. #4652
    QJ Gamer Blue
    Points: 4.031, Level: 40
    Level completed: 41%, Points required for next Level: 119
    Overall activity: 91,0%

    Registriert seit
    Feb 2007
    Ort
    Florida
    Beiträge
    214
    Points
    4.031
    Level
    40
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von yaustar
    Code:
    OBJS = main.cpp
    Should be:
    Code:
    OBJS = main.o

    Lol! I feel stupid. Thanks.

    One time I had to change it to main.cpp, now I gotta change it back to main.o..hehe.

    Thanks again.

  3. #4653
    Developer
    Points: 5.085, Level: 45
    Level completed: 68%, Points required for next Level: 65
    Overall activity: 0%

    Registriert seit
    Oct 2005
    Beiträge
    206
    Points
    5.085
    Level
    45
    Downloads
    0
    Uploads
    0

    Standard

    I'm having trouble installing libtools under Cygwin. It seems like one file cannot be compiled. Here are the last messages before the activity stopped.

    Code:
    Making all in .
    make[1]: Entering directory `/home/JustChris/libtool'
    CONFIG_FILES=libtoolize CONFIG_HEADERS= /bin/sh ./config.status
    config.status: creating libtoolize
    config.status: executing depfiles commands
    chmod +x libtoolize
    make[1]: Leaving directory `/home/JustChris/libtool'
    Making all in libltdl
    make[1]: Entering directory `/home/JustChris/libtool/libltdl'
    make  all-am
    make[2]: Entering directory `/home/JustChris/libtool/libltdl'
    /bin/sh ./libtool --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.
    -g -O2 -c -o ltdl.lo ltdl.c
    mkdir .libs
     gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -c ltdl.c  -DPIC -o .libs/ltdl.o
    ltdl.c: In function `find_handle_callback':
    ltdl.c:2787: error: `R_OK' undeclared (first use in this function)
    ltdl.c:2787: error: (Each undeclared identifier is reported only once
    ltdl.c:2787: error: for each function it appears in.)
    make[2]: *** [ltdl.lo] Error 1
    make[2]: Leaving directory `/home/JustChris/libtool/libltdl'
    make[1]: *** [all] Error 2
    make[1]: Leaving directory `/home/JustChris/libtool/libltdl'
    make: *** [all-recursive] Error 1
    GameSnooper - Random drawing of gaming news

    The 32 Bit Shell - My development blog (also includes gaming oddities)

  4. #4654
    Heroes never die
    Points: 8.645, Level: 62
    Level completed: 65%, Points required for next Level: 105
    Overall activity: 0%

    Registriert seit
    Aug 2006
    Ort
    ...........
    Beiträge
    1.323
    Points
    8.645
    Level
    62
    Downloads
    0
    Uploads
    0

    Standard

    mayby you need another lib for that

  5. #4655
    QJ Gamer Green
    Points: 3.777, Level: 38
    Level completed: 85%, Points required for next Level: 23
    Overall activity: 0%

    Registriert seit
    Dec 2006
    Beiträge
    94
    Points
    3.777
    Level
    38
    Downloads
    0
    Uploads
    0

    Standard

    hey guys, im plannin to reformat my laptop but my cygwin is on the C drive.. so im burnin my whole cygwin folder into a dvd... will it work? im on a low dsl connection and itll be a pain if i reinstall cygwin again

    nope, not working what will i do to make my cygwin on dvd work? please help ...

  6. #4656
    Heroes never die
    Points: 8.645, Level: 62
    Level completed: 65%, Points required for next Level: 105
    Overall activity: 0%

    Registriert seit
    Aug 2006
    Ort
    ...........
    Beiträge
    1.323
    Points
    8.645
    Level
    62
    Downloads
    0
    Uploads
    0

    Standard

    just back it up on dvd and recopy it after formatting
    -= Double Post =-
    Code:
    string fileList[222];
    void getFileList(const char *path)
    {
    	SceUID bufferFile;
    	char nextPath[256];
    	int z = 0;
    
    	bufferFile = sceIoDopen(path);
    	if(bufferFile > 0)
    	{                  
    		SceIoDirent dir;
                    memset(&dir, 0, sizeof(SceIoDirent)); 
    		while(sceIoDread(bufferFile, &dir) > 0)
    		{
                        strcat(fileList[z].c_str() , path);  
                        z++;
                        if(z > 222 ) break;
    		}
    		sceIoDclose(bufferFile);
    	}
    }
    I know this fucnton will be slow , how can i speed it up?(make it faster)
    Geändert von hallo007 (05-23-2007 um 05:50 AM Uhr) Grund: Automerged Doublepost

  7. #4657
    words are stones in my <3
    Points: 35.274, Level: 100
    Level completed: 0%, Points required for next Level: 0
    Overall activity: 0%

    Registriert seit
    Jul 2005
    Ort
    Spokane
    Beiträge
    5.008
    Points
    35.274
    Level
    100
    My Mood
    Lonely
    Downloads
    1
    Uploads
    0

    Standard

    hallo - Does the term 'registry' mean anything to you? You can burn your whole cygwin folder to a dvd (even though itll fit on a CD-R at ~500 mb) but after you recopy it back, youll need to make some registry additions. To do this, you could go into your registry and find the Cygnus registry folders and copy them to that DVD as well. Then once you've reformatted, enter the Cygnus registry folders back into the registry where they were before you formatted.

    ...at what speed must I live.. to be able to see you again?...

    Projects

    You can support my Open World 3D RPG for PSP by voting for it here


  8. #4658
    Heroes never die
    Points: 8.645, Level: 62
    Level completed: 65%, Points required for next Level: 105
    Overall activity: 0%

    Registriert seit
    Aug 2006
    Ort
    ...........
    Beiträge
    1.323
    Points
    8.645
    Level
    62
    Downloads
    0
    Uploads
    0

    Standard

    no never heared about it

  9. #4659
    QJ Gamer Silver
    Points: 7.385, Level: 57
    Level completed: 18%, Points required for next Level: 165
    Overall activity: 0%

    Registriert seit
    Sep 2006
    Ort
    Finland
    Beiträge
    752
    Points
    7.385
    Level
    57
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von hallo007
    no never heared about it
    System registry is one of the basic fundamentals of a Windows system... -_-
    wheeee =:D

  10. #4660
    Your Fate is Grim...
    Points: 11.640, Level: 70
    Level completed: 98%, Points required for next Level: 10
    Overall activity: 0%

    Registriert seit
    Oct 2005
    Beiträge
    2.269
    Points
    11.640
    Level
    70
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von SG57
    hallo - Does the term 'registry' mean anything to you? You can burn your whole cygwin folder to a dvd (even though itll fit on a CD-R at ~500 mb) but after you recopy it back, youll need to make some registry additions. To do this, you could go into your registry and find the Cygnus registry folders and copy them to that DVD as well. Then once you've reformatted, enter the Cygnus registry folders back into the registry where they were before you formatted.

    easier way:

    1. copy cygwin to the formatted harddrive.
    2. download and install cygwin again to restore the registry keys.
    3. DONT install the toolchain. That has already been done with the copy.

    Installing cygwin shouldnt even take that long. maybe 1 hour. Unless you dont want to wait that long, then good luck with another method.
    --------------------------------------------------------------------------------------

  11. #4661
    Party at Las Noches!
    Points: 14.973, Level: 79
    Level completed: 25%, Points required for next Level: 377
    Overall activity: 0%

    Registriert seit
    Jun 2005
    Ort
    Florida
    Beiträge
    1.648
    Points
    14.973
    Level
    79
    Downloads
    0
    Uploads
    0

    Standard

    I'm looking for a tutorial on installing the Compiler and everything on Linux... I don't want to screw up GCC and everything because I'm using Gentoo... (In which everything is built and doesn't use packages)

    Thanks,
    IchigoKurosaki
    Nobis Development Group
    .:Nobis Development Group:.
    .:Personal Portfolio:.

    Playstation Portable - PSP1001 - 3.90 M33-2

  12. #4662
    Developer
    Points: 5.085, Level: 45
    Level completed: 68%, Points required for next Level: 65
    Overall activity: 0%

    Registriert seit
    Oct 2005
    Beiträge
    206
    Points
    5.085
    Level
    45
    Downloads
    0
    Uploads
    0

    Standard

    Has anyone figured out my Libtools installation problem? Hallo007 said it could be a missing lib but I don't know which one it could be.

    I'm installing a new version of Libtools because I wanted to setup FreeType2. When I run the first shell script for that, the "libtoolize" command is not found. But now I'm also having problems installing Libtools too! (the message text is in my previous post)
    GameSnooper - Random drawing of gaming news

    The 32 Bit Shell - My development blog (also includes gaming oddities)

  13. #4663
    Heroes never die
    Points: 8.645, Level: 62
    Level completed: 65%, Points required for next Level: 105
    Overall activity: 0%

    Registriert seit
    Aug 2006
    Ort
    ...........
    Beiträge
    1.323
    Points
    8.645
    Level
    62
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von IchigoKurosaki
    I'm looking for a tutorial on installing the Compiler and everything on Linux... I don't want to screw up GCC and everything because I'm using Gentoo... (In which everything is built and doesn't use packages)

    Thanks,
    IchigoKurosaki
    Nobis Development Group
    http://www.psp-programming.com/code/...chain_on_linux

  14. #4664
    Party at Las Noches!
    Points: 14.973, Level: 79
    Level completed: 25%, Points required for next Level: 377
    Overall activity: 0%

    Registriert seit
    Jun 2005
    Ort
    Florida
    Beiträge
    1.648
    Points
    14.973
    Level
    79
    Downloads
    0
    Uploads
    0
    .:Nobis Development Group:.
    .:Personal Portfolio:.

    Playstation Portable - PSP1001 - 3.90 M33-2

  15. #4665
    Heroes never die
    Points: 8.645, Level: 62
    Level completed: 65%, Points required for next Level: 105
    Overall activity: 0%

    Registriert seit
    Aug 2006
    Ort
    ...........
    Beiträge
    1.323
    Points
    8.645
    Level
    62
    Downloads
    0
    Uploads
    0

    Standard

    the psp doenst see a different between image.png and IMAGE.PNG does it?

  16. #4666
    QJ Gamer Blue
    Points: 4.022, Level: 40
    Level completed: 36%, Points required for next Level: 128
    Overall activity: 0%

    Registriert seit
    Mar 2007
    Ort
    Holland..
    Beiträge
    154
    Points
    4.022
    Level
    40
    Downloads
    0
    Uploads
    0

    Standard

    well the psp does see differents bitween IMAGE and image :S realy stupid

  17. #4667
    Heroes never die
    Points: 8.645, Level: 62
    Level completed: 65%, Points required for next Level: 105
    Overall activity: 0%

    Registriert seit
    Aug 2006
    Ort
    ...........
    Beiträge
    1.323
    Points
    8.645
    Level
    62
    Downloads
    0
    Uploads
    0

    Standard

    windows doenst, are u sure?

  18. #4668
    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 hallo007
    windows doenst, are u sure?
    I wouldn't think so.

  19. #4669
    Party at Las Noches!
    Points: 14.973, Level: 79
    Level completed: 25%, Points required for next Level: 377
    Overall activity: 0%

    Registriert seit
    Jun 2005
    Ort
    Florida
    Beiträge
    1.648
    Points
    14.973
    Level
    79
    Downloads
    0
    Uploads
    0

    Standard

    I'm pretty sure the PSP is Case Sensitive... Much like a UNIX/Linux Operating System...
    .:Nobis Development Group:.
    .:Personal Portfolio:.

    Playstation Portable - PSP1001 - 3.90 M33-2

  20. #4670
    Heroes never die
    Points: 8.645, Level: 62
    Level completed: 65%, Points required for next Level: 105
    Overall activity: 0%

    Registriert seit
    Aug 2006
    Ort
    ...........
    Beiträge
    1.323
    Points
    8.645
    Level
    62
    Downloads
    0
    Uploads
    0

    Standard

    thnx

  21. #4671
    QJ Gamer Green
    Points: 5.712, Level: 48
    Level completed: 81%, Points required for next Level: 38
    Overall activity: 0%

    Registriert seit
    Jul 2006
    Ort
    USA SC/NC
    Beiträge
    699
    Points
    5.712
    Level
    48
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von Kwastie
    well the psp does see differents bitween IMAGE and image :S realy stupid
    No it doesn't.

    Zitat Zitat von IchigoKurosaki
    I'm pretty sure the PSP is Case Sensitive... Much like a UNIX/Linux Operating System...
    No, the PSP is not case sensitive when dealing with folders and files.
    [CODE]Random Facts:
    irc://irc.malloc.us #wtf #**********
    [/CODE]

    [SIZE="6"][FONT="Century Gothic"][COLOR="Blue"][URL="http://forums.**********.net"]http://forums.**********.net[/URL][/COLOR][/FONT][/SIZE]

  22. #4672
    QJ Gamer Green
    Points: 5.397, Level: 47
    Level completed: 24%, Points required for next Level: 153
    Overall activity: 0%

    Registriert seit
    Jan 2007
    Ort
    Nova Scotia, Canada
    Beiträge
    702
    Points
    5.397
    Level
    47
    Downloads
    0
    Uploads
    0

    Standard

    I'm planning on learning c. Can someone pm a good link on where to start? I downloaded Dev-C++. It all looks a little much for me. I would just like a simple tutorial that takes me slowly. BTW, I know a little LUA.
    [B]pie[/B]

  23. #4673
    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

    [LINK]
    Read that. ^^

  24. #4674
    QJ Gamer Green
    Points: 5.397, Level: 47
    Level completed: 24%, Points required for next Level: 153
    Overall activity: 0%

    Registriert seit
    Jan 2007
    Ort
    Nova Scotia, Canada
    Beiträge
    702
    Points
    5.397
    Level
    47
    Downloads
    0
    Uploads
    0

    Standard

    Thank you:)
    My aswell not post again,
    Thanks to the poster below me too.
    Geändert von HippyG (05-23-2007 um 03:56 PM Uhr)
    [B]pie[/B]

  25. #4675
    Developer
    Points: 4.318, Level: 41
    Level completed: 84%, Points required for next Level: 32
    Overall activity: 0%

    Registriert seit
    Jul 2006
    Beiträge
    205
    Points
    4.318
    Level
    41
    Downloads
    0
    Uploads
    0

    Standard

    If you're looking for some very basic tutorials, there are several here:
    http://www.cprogramming.com/tutorial.html#ctutorial

    They aren't exactly comprehensive, but they will at least introduce you to the concepts. If you only know a little Lua, that probably just means you've learned some syntax, which won't help you much. You'll need a book to get more depth, and if you have the means a hard copy would be preferable to an online copy, just to save your eyes and your Alt and Tab keys. If you'd rather not spend any money, there are plenty of ebooks floating around that you'll find with a minimal amount of Googling.

    Or to make it simple on you, check out this post on Evilmana.com:
    http://forums.evilmana.com/index.php?topic=98.0

  26. #4676
    Heroes never die
    Points: 8.645, Level: 62
    Level completed: 65%, Points required for next Level: 105
    Overall activity: 0%

    Registriert seit
    Aug 2006
    Ort
    ...........
    Beiträge
    1.323
    Points
    8.645
    Level
    62
    Downloads
    0
    Uploads
    0

    Standard

    why cant i include this in two sources
    Code:
    #ifndef _VARIABELS_H_
    #define _VARIABELS_H_
    
    #include <string>
    
    string fileList[222];
    
    #endif
    i get multiple defenition error:s

  27. #4677
    QJ Gamer Green
    Points: 5.784, Level: 49
    Level completed: 17%, Points required for next Level: 166
    Overall activity: 0%

    Registriert seit
    Feb 2006
    Ort
    France
    Beiträge
    753
    Points
    5.784
    Level
    49
    Downloads
    0
    Uploads
    0

    Standard

    Check your other files' headers.

    ++ B.
    if I make mistakes in english, feel free to correct me or else i won't progress :D .

  28. #4678
    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 hallo007
    why cant i include this in two sources
    Code:
    #ifndef _VARIABELS_H_
    #define _VARIABELS_H_
    
    #include <string>
    
    string fileList[222];
    
    #endif
    i get multiple defenition error:s
    You have an error in that code to start off with:
    Code:
    #ifndef _VARIABELS_H_
    #define _VARIABELS_H_
    
    #include <string>
    
    std::string fileList[222];
    
    #endif

  29. #4679
    Heroes never die
    Points: 8.645, Level: 62
    Level completed: 65%, Points required for next Level: 105
    Overall activity: 0%

    Registriert seit
    Aug 2006
    Ort
    ...........
    Beiträge
    1.323
    Points
    8.645
    Level
    62
    Downloads
    0
    Uploads
    0

    Standard

    nono , i used using namespace std; at the beginning of the source;-)
    there arent any other errors;)

  30. #4680
    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

    If you are dealing with shared global variables (ick), this is how you should do it:
    variabels.h
    Code:
    #ifndef _VARIABELS_H_
    #define _VARIABELS_H_
    
    #include <string>
    
    extern std::string fileList[222];
    
    #endif

    variabels.cpp
    Code:
    #include <string>
    std::string fileList[222];
    We need to source to other files if you are still getting redefinition errors.


 

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:15 PM Uhr.

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