Compile error

Since Joey’s last update I’m having problems compiling on Linux:

[marlon@boom]:~/svn/gserver-v2/trunk/build$ make ==== Building gserver ==== TPlayerRC.cpp /usr/include/sys/stat.h: In member function "bool TPlayer::msgPLI_RC_FILEBROWSER_UP(CString&)": /usr/include/sys/stat.h:317: error: too few arguments to function "int mkdir(const char*, __mode_t)" ../../server/src/TPlayerRC.cpp:1478: error: at this point in file make[1]: *** [obj/Debug/TPlayerRC.o] Error 1 make: *** [gserver] Error 2

Due to the differences in how Linux and Windows makes and handles folders.
Once someone pops in some Linux knowledge, should be fine.

The modification was for the RC to be able to add folders to the harddrive.

I know, I’m not stupid, lol.

mkdir is the name of the command to make directories on linux. So I knew what the function did. And I even suggested that feature, lol.

True dat, I remember commenting on it months ago as well o_o

Where can I find this source? :o I wanna play with it!

[QUOTE=Shiny;18406]Where can I find this source? :o I wanna play with it![/QUOTE]

http://forums.graal.in/forums/showthread.php?t=1180

I have fixed bug in latest revision.

Can someone please check if the fix also compiles on Windows with no errors? if it does you can kill the #if statement

Also, best method I found to check if folder exists or not is the stat method.
I didn’t commit that though as Joey already knew about it and didn’t put it in for some reason.

You need the Boost:: libraries to compile it and I’m too lazy to add it - for now.

I got Boost installed with little hassle <3

Revision 817 works fine on windows

eeek, my bad… i don’t really use linux much =P… problem resolved?

[QUOTE=urza;18407]http://forums.graal.in/forums/showthread.php?t=1180[/QUOTE]
On second thought… I checked that link and I couldn’t find out how to just download the source rofl. Am I missing something?

You have tortoise svn?

[QUOTE=urza;18432]Revision 817 works fine on windows[/QUOTE]

of course it would, I didn’t change it. What I was asking was that if you found the #if I added (using view differences in the svn update log) and made it so it used the Linux method on windows would it still work?