I modified the Makefile, just like Daid said, and it compiled the cpp levels and now my program ran fine. So I think all I had to do was to change the Makefile. P.S. The Output of the make clean was this: > "make" clean clean ... > Process Exit Code: 0 > Time Taken: 00:11by Oscar_Richard - Coding
The output errors are the same even I do make clean. The reason I got level and level manager separated is because of level traveling, so I was trying to make level manager to tell level which stage will display first, which one will be next, etc. So this is not necessary, and I can make them in one, right? Edit: I'll do it later.by Oscar_Richard - Coding
I got some trouble with a project I'm trying to do for the Wii. When compiling it shows me this: > "make" main.cpp linking ... yosdemo.elf main.o: In function `levelManager::update()': e:/yosdemo/source/lvl/level_manager.cpp:17: undefined reference to `mapLevel::draw()' main.o: In function `__static_initialization_and_destruction_0': e:/yosdemo/source/lvl/level_by Oscar_Richard - Coding
I have made some changes to my program. When I compile it does not recognize the buffer for some reason. Here's the error: linking ... yosdemo.elf main.o: In function `main': e:/yosdemo/source/main.cpp:16: undefined reference to `GRRLIB_buffer' e:/yosdemo/source/main.cpp:16: undefined reference to `GRRLIB_buffer' collect2: ld returned 1 exit status make[1]: *** Errorby Oscar_Richard - Coding
Thanks. I modified my Makefile and it runs already on my Wii. However the image looks extended, but I guess it's because the width/high I put it.by Oscar_Richard - Coding
I made some changes in player.cpp: #include #include "player.h" #include "img/spr_oscright.h" /*typedef struct OscImg { GRRLIB_texImg * imgOsc; } OscImg; OscImg imgOsc;*/ GRRLIB_texImg * imgOsc; objOscar::objOscar () { posx=(256/2); //X posy=(240/2); //Y } objOscar::~objOscar() { } void objOscar::handed() { hand=true; } bool objOscar::draw()by Oscar_Richard - Coding
I'm basing in some examples in Wiibrew.org. Here's the .h code: #ifndef __PLAYER_H__ #define __PLAYER_H__ class objOscar { public: objOscar(); ~objOscar(); int diamonds; void handed(); void update(); bool draw(); private: int score; double faith;by Oscar_Richard - Coding
I try to call to this constructor, but it say that cannot convert 'const u16*' to 'const u8*' for argument '1' to GRRLIB_teximg* GRRLIB_Loadtexture(const u8*) I even tried to put u16 and u8 next to imgOsc, but it marks the same previous error. #include "player.h" #include "img/spr_oscright.h" typedef struct OscImg { GRRLIB_texImg * texture; } OscImgby Oscar_Richard - Coding
I try to load the texture. It says now this: e:/game/source/player.cpp:10: expected constructor, destructor, or type conversion before '.' token Here is the updated code for player.cpp: // #include "player.h" #include "img/spr_oscright.h" typedef struct OscImg { GRRLIB_texImg * texture; } OscImg; OscImg imgOsc; imgOsc.texture = GRRLIB_LoadTexture(spr_oscright_img)by Oscar_Richard - Coding
I renamed GX_BM_SUBSTRACT to GX_BM_SUBTRACT so the error dissapeared. I suppose that is OK. For the rest two errors I put a semi-colon in other header file (player.h) and then I got now these two mistakes:by Oscar_Richard - Coding
I'm trying to compile my code to .dol file using a Makefile, of course. But when I do I get three errors: 1.-GX_BM_Substract was not declared 2.-Two or more data types in declaration of 'spr_oscright_high' 3.-A 'spr_oscright_high' was not declared. Here is a screen capture: For error 1 I don't know if I installed grrlib so bad. For error 3 I suppose is frby Oscar_Richard - Coding