#153250 - Mazdaplz - Thu Mar 27, 2008 12:54 am
ok, so i was sailing full speed when i compiled the hello world example that came as a template with devkitpro.
i kept on going with the tonc tutorial. i grabbed the code and replaced template.c with the code from the 3 pixels example. you know, this one:
pretty straightforward. i did not touch the makefile.
i had no problems compiling, but i couldnt save it as template, i needed a new filename.
i made a new folder in C: (c:\prog) and i put a copy of the makefile there,
then i made a new file called first.c (as in first gba rom, which is the name of this example).
i made a whole new group project called first.pnproj, and a new project inside of it called first. i added the makefile to the project and a new folder called source, where i dropped first.c
it seemed like an exact copy of the template that had worked, only on some other folder and with another name (first instead of template).
pressed alt+1 and on compile i got this error:
"no rules to make first.c needed by first.o" (or something very similar, i kinda erased that project so i don't have the actual message but it's pretty close)
how come???
i really dont understand programmer's notepad 2, im guessing it has something to do with the name of the .pnproj or the folder which it is in, otherwise it should work perfectly.
i opened template.pnproj again; i erased the contents of template.c for the second time and added the code that i posted. it worked...
if i scratch my head any harder i will touch my brain. what should i do :(
it's funny i have been struggling with programmers notepad instead of actual code. i have yet to write a single line of my own
i guess i can compile anything as long as it's called 'template'
EDIT: ok i recovered the exact error message (mostly)
"No rule to make target first.c, needed by first.o, stop"
i kept on going with the tonc tutorial. i grabbed the code and replaced template.c with the code from the 3 pixels example. you know, this one:
Code: |
int main()
{ *(unsigned int*)0x04000000 = 0x0403; ((unsigned short*)0x06000000)[120+80*240] = 0x001F; ((unsigned short*)0x06000000)[136+80*240] = 0x03E0; ((unsigned short*)0x06000000)[120+96*240] = 0x7C00; while(1); return 0; } |
pretty straightforward. i did not touch the makefile.
i had no problems compiling, but i couldnt save it as template, i needed a new filename.
i made a new folder in C: (c:\prog) and i put a copy of the makefile there,
then i made a new file called first.c (as in first gba rom, which is the name of this example).
i made a whole new group project called first.pnproj, and a new project inside of it called first. i added the makefile to the project and a new folder called source, where i dropped first.c
it seemed like an exact copy of the template that had worked, only on some other folder and with another name (first instead of template).
pressed alt+1 and on compile i got this error:
"no rules to make first.c needed by first.o" (or something very similar, i kinda erased that project so i don't have the actual message but it's pretty close)
how come???
i really dont understand programmer's notepad 2, im guessing it has something to do with the name of the .pnproj or the folder which it is in, otherwise it should work perfectly.
i opened template.pnproj again; i erased the contents of template.c for the second time and added the code that i posted. it worked...
if i scratch my head any harder i will touch my brain. what should i do :(
it's funny i have been struggling with programmers notepad instead of actual code. i have yet to write a single line of my own
i guess i can compile anything as long as it's called 'template'
EDIT: ok i recovered the exact error message (mostly)
"No rule to make target first.c, needed by first.o, stop"