Dwedit's Board

Enjoy the board

You are not logged in.

Announcement

Welcome, fellow visitors from other websites!
Whenever you download a file, I'd appreciate it if you posted a nice "Thank You" message, then tell me which site you came from. Thanks.
- Dwedit

#1 2009-01-20 11:42:24 am

Chrono31
Member
From: Oregon
Registered: 2009-01-16
Posts: 7
Website

Does anyone understand devkitpro-Devkitppc??

Ive been messin around with devkitpro-devkitppc

For about a month now and I wish there was a tut out there that explained how to make
a simple program for it...
But I havent found one....

Maybe someone on here knows of one....

Offline

#2 2009-01-20 11:57:45 am

Dwedit
Administrator
From: Chicago
Registered: 2004-12-12
Posts: 1,017
Website

Re: Does anyone understand devkitpro-Devkitppc??

I've never used devkitppc before, but you might want to look in the Examples folder which comes with devkitpro.  There were lots of GBA and NDS examples there.


"We are merely sprites that dance at the beck and call of our button pressing overlord."

Offline

#3 2009-01-20 4:21:57 pm

Chrono31
Member
From: Oregon
Registered: 2009-01-16
Posts: 7
Website

Re: Does anyone understand devkitpro-Devkitppc??

Thats a good idea except when I go and look at the examples in the devkitppc folder theres alot of different files in there but the ones I can see are the source files.
And Im at the beginning of learning C for dummies.. (I have learning C Programming for dummies) The source files are in .c format.

And Im having enough problems with Dev-C++(compiler)

Offline

#4 2009-01-20 5:12:31 pm

Dwedit
Administrator
From: Chicago
Registered: 2004-12-12
Posts: 1,017
Website

Re: Does anyone understand devkitpro-Devkitppc??

Do you have any programming experience at all?
I recommend you go download some source code to a program, then play around with it.  For example, go download the code to a game.  Change it so you start with 20 lives.  Make it so that when you hold down the "F" key you can do a super jump.
I think that messing around with existing code, and trying to write similar code that does something you want it to do is a valid way to try to learn a programming language.  It's the Monkey-See Monkey-Do method.

But stick with programming for the PC until you understand basic programming logic and the programming language itself.  Then you can try another platform.
I did tons and tons of QBASIC long before I touched anything else.  Granted, I was also 9 at the time :)


"We are merely sprites that dance at the beck and call of our button pressing overlord."

Offline

#5 2009-01-20 7:04:04 pm

Chrono31
Member
From: Oregon
Registered: 2009-01-16
Posts: 7
Website

Re: Does anyone understand devkitpro-Devkitppc??

So how would I find source code for a pc game or a program..
Is google a source code hub??(Well I know its a search engine so yeah it is,
But I know that google itself hosts source code)
I will show a example

http://www.wiibrew.org/w/index.php?titl … ction=edit

I dont play alot of pc games....

hmmmm

about the only game I play for pc on a semi regular basis is Diablo 2: Lord Of Destruction..

Is there a common area or site that holds all the source codes imaginable
or if its in a area of the installation where??

When I do find it, do I edit it with Dev-C++??

Maybe you can help me with my problem im having..

Ok,

where do I begin..

Im running Vista Ultimate 64bit

I have C for dummies which I am reading..

It says to go out and get a compiler which I did..(Dev-C++)

And a text editor
I have Notepad2

So I write out the first example in notepad2

#include <stdio.h>

int main()
{
printf("Goodbye, cruel world!\n") ;
return(0);
}

Then I save it in a specified folder as goodbye.c


And use Dev-C++ to open goodbye.c
I compile it.. a little screen blinks at me..

And I run it and it gives me an error
"source file not compiled"

I thought that's what I just did??

So am I doing something wrong??
Am I missing a step?

Maybe Dev-C++ isent the right tool to do what im trying to do??

My name is Brian and the version of Dev-C++ 4.9.9.2
Thanks for any help....

I also wanted to share my compile log..


Compiler: Default compiler
Building Makefile: "C:\C scripts\Makefile.win"
Executing make...
make.exe -f "C:\C scripts\Makefile.win" all
gcc.exe Goobye.o -o "Project1.exe" -L"C:/Dev-Cpp/lib"

/mingw/lib/crt2.o(.text+0x37):crt1.c: undefined reference to `__cpu_features_init'
collect2: ld returned 1 exit status

make.exe: *** [Project1.exe] Error 1

Execution terminated


Maybe that could shed some light....
Thanks..

Ive been posting this in a few forums with no luck....

Offline

#6 2009-01-20 7:29:08 pm

Dwedit
Administrator
From: Chicago
Registered: 2004-12-12
Posts: 1,017
Website

Re: Does anyone understand devkitpro-Devkitppc??

Yuck, why would there be an undefined reference to __cpu_features_init?
Make sure that the source file is part of your Dev C++ Project, and not just a file opened separately.


"We are merely sprites that dance at the beck and call of our button pressing overlord."

Offline

#7 2009-01-20 7:43:15 pm

Chrono31
Member
From: Oregon
Registered: 2009-01-16
Posts: 7
Website

Re: Does anyone understand devkitpro-Devkitppc??

So I put the folder with all my C projects in the same file  as Dev-C++
But When I open Goodbye.c in Dev-C++ and try to run it,
It still tells me "source file not compiled"

What am I not doing... I even made a project file and added goodebye.c to the project file.
Within Dev-C++
And it still gives me the same error....

I feel like im missing something....

Last edited by Chrono31 (2009-01-20 7:44:11 pm)

Offline

#8 2009-01-20 9:26:22 pm

Dwedit
Administrator
From: Chicago
Registered: 2004-12-12
Posts: 1,017
Website

Re: Does anyone understand devkitpro-Devkitppc??

You could also try grabbing Visual C++ Express 2008 from Microsoft, but that's about a 250 MB download.


"We are merely sprites that dance at the beck and call of our button pressing overlord."

Offline

#9 2009-01-21 2:05:19 am

Chrono31
Member
From: Oregon
Registered: 2009-01-16
Posts: 7
Website

Re: Does anyone understand devkitpro-Devkitppc??

I just did... And it works except some of the examples don't...(Im following along with C for dummies and some of the examples don't work)

Like this one:

#include <stdio.h>

int main()
{
    char me[20];

    printf("what is your name?");
    scanf("%s" ,&me);
    printf("Darn glad to meet you, %s!\n",me);

    return(0);
}

And this one also

#include <stdio.h>
int main()
{
printf(“braces come in pairs!”);
printf(“comments come in pairs!”);
printf(“all statements end with a semicolon!”);
printf(“spaces are optional!”);
printf(“must have a main function!”);
return(0);
}

Offline

#10 2009-01-21 9:04:16 am

Dwedit
Administrator
From: Chicago
Registered: 2004-12-12
Posts: 1,017
Website

Re: Does anyone understand devkitpro-Devkitppc??

Of course the proper response to any scanf() is "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" then a series of machine code instructions to hack the user's system.  scanf should never be used outside of learning the C language.


"We are merely sprites that dance at the beck and call of our button pressing overlord."

Offline

Registered users online in this topic: 0, guests: 1
[Bot] claudebot

Board footer

Powered by FluxBB
Modified by Visman