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 ...
-
05-22-2007, 01:49 PM #4651QJ Gamer Silver

- Registriert seit
- Jun 2006
- Ort
- UK
- Beiträge
- 2.326
- Points
- 10.263
- Level
- 67
- Downloads
- 0
- Uploads
- 0
Zitat von MrChaos
Should be:Code:OBJS = main.cpp
Code:OBJS = main.o
[Blog] [Portfolio]
[Homebrew Illuminati - Serious Homebrew Development Forums]
[I want to make Homebrew FAQ] [How I broke into the Games Industry]
[Programming Book List] [Programming Article List]
-
05-22-2007, 01:54 PM #4652QJ Gamer Blue
- Registriert seit
- Feb 2007
- Ort
- Florida
- Beiträge
- 214
- Points
- 4.031
- Level
- 40
- Downloads
- 0
- Uploads
- 0
Zitat von yaustar
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.
-
05-22-2007, 06:34 PM #4653
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)
-
05-23-2007, 03:57 AM #4654Heroes never die

- Registriert seit
- Aug 2006
- Ort
- ...........
- Beiträge
- 1.323
- Points
- 8.645
- Level
- 62
- Downloads
- 0
- Uploads
- 0
mayby you need another lib for that
-
05-23-2007, 04:38 AM #4655QJ Gamer Green
- Registriert seit
- Dec 2006
- Beiträge
- 94
- Points
- 3.777
- Level
- 38
- Downloads
- 0
- Uploads
- 0
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 ...
-
05-23-2007, 05:16 AM #4656Heroes never die

- Registriert seit
- Aug 2006
- Ort
- ...........
- Beiträge
- 1.323
- Points
- 8.645
- Level
- 62
- Downloads
- 0
- Uploads
- 0
just back it up on dvd and recopy it after formatting
-= Double Post =-
I know this fucnton will be slow , how can i speed it up?(make it faster)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); } }Geändert von hallo007 (05-23-2007 um 05:50 AM Uhr) Grund: Automerged Doublepost
-
05-23-2007, 06:56 AM #4657words are stones in my <3

- Registriert seit
- Jul 2005
- Ort
- Spokane
- Beiträge
- 5.008
- Points
- 35.274
- Level
- 100
- My Mood
-
- Downloads
- 1
- Uploads
- 0
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
-
05-23-2007, 08:42 AM #4658Heroes never die

- Registriert seit
- Aug 2006
- Ort
- ...........
- Beiträge
- 1.323
- Points
- 8.645
- Level
- 62
- Downloads
- 0
- Uploads
- 0
no never heared about it
-
05-23-2007, 10:09 AM #4659QJ Gamer Silver
- Registriert seit
- Sep 2006
- Ort
- Finland
- Beiträge
- 752
- Points
- 7.385
- Level
- 57
- Downloads
- 0
- Uploads
- 0
System registry is one of the basic fundamentals of a Windows system... -_-
Zitat von hallo007
wheeee =:D
-
05-23-2007, 10:22 AM #4660Your Fate is Grim...

- Registriert seit
- Oct 2005
- Beiträge
- 2.269
- Points
- 11.640
- Level
- 70
- Downloads
- 0
- Uploads
- 0
Zitat von SG57
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.--------------------------------------------------------------------------------------
-
05-23-2007, 10:40 AM #4661Party at Las Noches!

- Registriert seit
- Jun 2005
- Ort
- Florida
- Beiträge
- 1.648
- Points
- 14.973
- Level
- 79
- Downloads
- 0
- Uploads
- 0
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
-
05-23-2007, 10:41 AM #4662
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)
-
05-23-2007, 10:52 AM #4663Heroes never die

- Registriert seit
- Aug 2006
- Ort
- ...........
- Beiträge
- 1.323
- Points
- 8.645
- Level
- 62
- Downloads
- 0
- Uploads
- 0
http://www.psp-programming.com/code/...chain_on_linux
Zitat von IchigoKurosaki
-
05-23-2007, 10:55 AM #4664Party at Las Noches!

- Registriert seit
- Jun 2005
- Ort
- Florida
- Beiträge
- 1.648
- Points
- 14.973
- Level
- 79
- Downloads
- 0
- Uploads
- 0
Thanks ^^
Zitat von hallo007
-
05-23-2007, 11:08 AM #4665Heroes never die

- Registriert seit
- Aug 2006
- Ort
- ...........
- Beiträge
- 1.323
- Points
- 8.645
- Level
- 62
- Downloads
- 0
- Uploads
- 0
the psp doenst see a different between image.png and IMAGE.PNG does it?
-
05-23-2007, 11:18 AM #4666QJ Gamer Blue
- Registriert seit
- Mar 2007
- Ort
- Holland..
- Beiträge
- 154
- Points
- 4.022
- Level
- 40
- Downloads
- 0
- Uploads
- 0
well the psp does see differents bitween IMAGE and image :S realy stupid
-
05-23-2007, 11:24 AM #4667Heroes never die

- Registriert seit
- Aug 2006
- Ort
- ...........
- Beiträge
- 1.323
- Points
- 8.645
- Level
- 62
- Downloads
- 0
- Uploads
- 0
windows doenst, are u sure?
-
05-23-2007, 11:32 AM #4668QJ Gamer Green
- Registriert seit
- Dec 2006
- Ort
- main();
- Beiträge
- 1.071
- Points
- 11.300
- Level
- 70
- Downloads
- 0
- Uploads
- 0
I wouldn't think so.
Zitat von hallo007
-
05-23-2007, 11:33 AM #4669Party at Las Noches!

- Registriert seit
- Jun 2005
- Ort
- Florida
- Beiträge
- 1.648
- Points
- 14.973
- Level
- 79
- Downloads
- 0
- Uploads
- 0
I'm pretty sure the PSP is Case Sensitive... Much like a UNIX/Linux Operating System...
-
05-23-2007, 11:35 AM #4670Heroes never die

- Registriert seit
- Aug 2006
- Ort
- ...........
- Beiträge
- 1.323
- Points
- 8.645
- Level
- 62
- Downloads
- 0
- Uploads
- 0
thnx
-
05-23-2007, 01:39 PM #4671QJ Gamer Green
- Registriert seit
- Jul 2006
- Ort
- USA SC/NC
- Beiträge
- 699
- Points
- 5.712
- Level
- 48
- Downloads
- 0
- Uploads
- 0
No it doesn't.
Zitat von Kwastie
No, the PSP is not case sensitive when dealing with folders and files.
Zitat von IchigoKurosaki
[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]
-
05-23-2007, 02:55 PM #4672QJ Gamer Green
- Registriert seit
- Jan 2007
- Ort
- Nova Scotia, Canada
- Beiträge
- 702
- Points
- 5.397
- Level
- 47
- Downloads
- 0
- Uploads
- 0
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]
-
05-23-2007, 02:59 PM #4673QJ Gamer Green
- Registriert seit
- Dec 2006
- Ort
- main();
- Beiträge
- 1.071
- Points
- 11.300
- Level
- 70
- Downloads
- 0
- Uploads
- 0
[LINK]
Read that. ^^
-
05-23-2007, 03:27 PM #4674QJ Gamer Green
- Registriert seit
- Jan 2007
- Ort
- Nova Scotia, Canada
- Beiträge
- 702
- Points
- 5.397
- Level
- 47
- Downloads
- 0
- Uploads
- 0
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]
-
05-23-2007, 03:44 PM #4675Developer

- Registriert seit
- Jul 2006
- Beiträge
- 205
- Points
- 4.318
- Level
- 41
- Downloads
- 0
- Uploads
- 0
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
-
05-24-2007, 10:50 AM #4676Heroes never die

- Registriert seit
- Aug 2006
- Ort
- ...........
- Beiträge
- 1.323
- Points
- 8.645
- Level
- 62
- Downloads
- 0
- Uploads
- 0
why cant i include this in two sources
i get multiple defenition error:sCode:#ifndef _VARIABELS_H_ #define _VARIABELS_H_ #include <string> string fileList[222]; #endif
-
05-24-2007, 10:53 AM #4677QJ Gamer Green
- Registriert seit
- Feb 2006
- Ort
- France
- Beiträge
- 753
- Points
- 5.784
- Level
- 49
- Downloads
- 0
- Uploads
- 0
Check your other files' headers.
++ B.if I make mistakes in english, feel free to correct me or else i won't progress :D .
-
05-24-2007, 11:01 AM #4678QJ Gamer Silver

- Registriert seit
- Jun 2006
- Ort
- UK
- Beiträge
- 2.326
- Points
- 10.263
- Level
- 67
- Downloads
- 0
- Uploads
- 0
You have an error in that code to start off with:
Zitat von hallo007
Code:#ifndef _VARIABELS_H_ #define _VARIABELS_H_ #include <string> std::string fileList[222]; #endif
[Blog] [Portfolio]
[Homebrew Illuminati - Serious Homebrew Development Forums]
[I want to make Homebrew FAQ] [How I broke into the Games Industry]
[Programming Book List] [Programming Article List]
-
05-24-2007, 11:16 AM #4679Heroes never die

- Registriert seit
- Aug 2006
- Ort
- ...........
- Beiträge
- 1.323
- Points
- 8.645
- Level
- 62
- Downloads
- 0
- Uploads
- 0
nono , i used using namespace std; at the beginning of the source;-)
there arent any other errors;)
-
05-24-2007, 11:35 AM #4680QJ Gamer Silver

- Registriert seit
- Jun 2006
- Ort
- UK
- Beiträge
- 2.326
- Points
- 10.263
- Level
- 67
- Downloads
- 0
- Uploads
- 0
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
We need to source to other files if you are still getting redefinition errors.Code:#include <string> std::string fileList[222];
[Blog] [Portfolio]
[Homebrew Illuminati - Serious Homebrew Development Forums]
[I want to make Homebrew FAQ] [How I broke into the Games Industry]
[Programming Book List] [Programming Article List]


LinkBack URL
About LinkBacks
Mit Zitat antworten

Hello everyone I am new here and I am glad to be part of this amazing community and I think there...
New to forum