Hello!
I got my Wiz a couple of days ago and I'm really happy with it.
Now I got interested in developing homebrew - I followed this tutorial. http://wiki.gp2x.org/wiki/Using_CodeBlocks
It seems to work fine - I can successfully compile the example.
The only problem is, it won't run on my Wiz.
My guess is that the example compiles statically, which is, according to many sources including IRC, not possible/recommended on the Wiz.
I removed the "-static" flag, and tried recompiling...
...and I get hundreds of errors.
sdltest.cpp
.text+0xc): undefined reference to `SDL_FreeSurface'
It pretty much complains about all SDL functions used.
The header files are included - I don't get any error messages.
Proof: If I change their paths to something random, I do get error messages.
I tried writing the program's output into a file (via sh), which didn't work.
The log file was created, that's all.
I also put a printf() at the start of main() to make sure. Nothing.
Now my question simply is, how to fix this?
I am able to compile statically, although I'm not supposed to?!
Thanks, looki
EDIT: Oh, one note - I compiled another SDL example without the -static flag before, I didn't use Code::Blocks.
It worked on the Wiz.
EDIT2: I see - I just noticed the tutorial is on the GP2X wiki, not the Wiz one. So what do I need to do to make it work on the Wiz?
I got my Wiz a couple of days ago and I'm really happy with it.
Now I got interested in developing homebrew - I followed this tutorial. http://wiki.gp2x.org/wiki/Using_CodeBlocks
It seems to work fine - I can successfully compile the example.
The only problem is, it won't run on my Wiz.
My guess is that the example compiles statically, which is, according to many sources including IRC, not possible/recommended on the Wiz.
I removed the "-static" flag, and tried recompiling...
...and I get hundreds of errors.
sdltest.cpp
It pretty much complains about all SDL functions used.
The header files are included - I don't get any error messages.
Proof: If I change their paths to something random, I do get error messages.
I tried writing the program's output into a file (via sh), which didn't work.
The log file was created, that's all.
I also put a printf() at the start of main() to make sure. Nothing.
Now my question simply is, how to fix this?
I am able to compile statically, although I'm not supposed to?!
Thanks, looki
EDIT: Oh, one note - I compiled another SDL example without the -static flag before, I didn't use Code::Blocks.
It worked on the Wiz.
EDIT2: I see - I just noticed the tutorial is on the GP2X wiki, not the Wiz one. So what do I need to do to make it work on the Wiz?