When I try to compile my source which uses the makems command to copy some files to the memory stick, I always get this error:
main.c: In function 'main':
main.c:63: error: 'makems' undeclared (first use in this function)
main.c:63: error: (Each undeclared identifier is reported only once
main.c:63: error: for each function it appears in.)
main.c:64: error: 'fnbuffer' undeclared (first use in this function)
It seems that I'm missing some files, but when I checked the pspsdk documentation and other files I couldn't find what I was missing. Anybody know what the problem is?
EDIT:
Here's how I'm trying to use it, maybe this will help?
Did you declare the 'makems' somewhere? Why is it there if you don't even use it anywhere? Or should it be a function, then you should add parenthesis?
I'm sure it's not a function, so it doesn't need parenthesis. I'm not sure if I declared it though... what does that look like? (I'm working with other people so it's not entirely my project)
??? as it seems you are putting an integer value in to the variable, you could do it with:
int makems;
??? is that _really_ what you were asking...??? doesn't make any sense with the piece of code you provided though, as you never seem to use the variable. Or maybe you do in the copy_file function, so some info about variables actual usage might be helpful. also I cannot see why you do setup the 'fnbuffer', if you don't use it either... or maybe they are some global variables. hmm.