These are the errors I get when trying to compile FMyLife source.. // Initialize the FreeTypeGX library with the Trebuchet font. FreeTypeGX *ftgx = new FreeTypeGX(); //Throws error: no matching function for call to 'FreeTypeGX::FreeTypeGX() and error: 'ftgx' was not declared in this scope ftgx->loadFont(trebuchet_ttf, trebuchet_ttf_size, 18); //Throws class Frby One2Remember - Coding
Daid, Tantric, giantpune, tueidj ..... anybody.... Am I missing a semicolon somewhere? I read that this is a common cause for this type of error. If it's a missing semicolon it's invisible to me... I've checked and rechecked...by One2Remember - Coding
Thanks for your help Daid, it's much appreciated, so I tried this, is it right now? Quote u32 std::string FYL_Socket::read() { std::string message; if (fd_socket < 0) return (message); char *buffer = new char ; bzero(buffer, BUFFER_SIZE); while (net_read(fd_socket, buffer, BUFFER_SIZE) != 0) { message.append(buffer); bzero(buffer, BUFFER_SIZE); }by One2Remember - Coding
Here is the code Quote #define BUFFER_SIZE 4096 class FYL_Socket { private: s32 fd_socket; public: FYL_Socket(std::string*, u32); s32 createSocket(); bool connect(std::string*, u32); void close(); u32 write(std::string*); u32 write(char*); std::string read(); }; FYL_Socket::FYL_Socket(std::string *host, u32 port) { creatby One2Remember - Coding
Yeah that makes more sens.. thanks.by One2Remember - Coding
Look at my thread, its extremely likely the fix is the same for your problem.... And this was my compiler ouput /c/devkitPro/devkitPPC/bin/powerpc-eabi-ranlib libmplayerwii.a make[1]: Leaving directory `/c/wiimc/source/mplayer' menu.cpp linking ... wiimc.elf menu.o: In function `ProgressWindow': c:/wiimc/source/menu.cpp:1221: undefined reference to `WIILIGHT_SetLevel(int)by One2Remember - Coding
giantpune, thanks for the suggestion it did put me on the right path and the solution was very much like the one you suggested. I had to open up wiilight.h and copy the functions and move them into the file I was calling them in like so.. Quote extern "C" { void WIILIGHT_Init(); void WIILIGHT_TurnOn(); int WIILIGHT_GetLevel(); int WIILIGHT_SetLevel(int level); void WIILIGHT_Toggleby One2Remember - Coding
I'm going to try this, I'll let you know how it turns out, ty for your efforts. Edit: No luck, it was worth a try I thought for sure that was it... On a lighter note I can recreate the problem in the hello world app by removing -lwiilight from the make file, this would suggest to me the problem is the make file. I've heard that the libs should be in a certain order.. is tby One2Remember - Coding
So I've been tweaking the WIIMC source all has gone well up until now, let me start by posting the compiler output Quote /c/devkitPro/devkitPPC/bin/powerpc-eabi-ranlib libmplayerwii.a make[1]: Leaving directory `/c/wiimc/source/mplayer' menu.cpp linking ... wiimc.elf menu.o: In function `ProgressWindow': c:/wiimc/source/menu.cpp:1221: undefined reference to `WIILIGHT_by One2Remember - Coding