let's just admit Visual Studio sux ... ok ?
right now, if you want to host a Private Ragnarok Online server, its just better to choose Debian or CentOS option
the reason is because if you choose Windows Server Edition on VPS,
the cost of running on Windows is often double or triple compare to Linux environment
because of this, programmer like me who write and compile their plugin/source code with Visual Studio,
it will work fine on Windows environment.
But when apply the code on Live server (Linux environment), it will throw non-sensible error
No.1
warning: implicit declaration of function ‘atoi’ [-Wimplicit-function-declaration]
Avoid using atoi like plague !!
in npc scripting its the only script command to convert string into int
yes, this actually working fine with Visual Studio, but on Linux ...
No.2
error: a label can only be part of a statement and a declaration is not a statement
Sample
this case have to be enclose with curly bracket, like this
No.3
warning: unused variable ‘len’ [-Wunused-variable]
Sample
this is very annoying, because I want to output the value from 4th argument, but the 2nd argument isn't use
on Windows this is fine, but on Linux it throws that error throw off my guard
change
there might be more, will keep this update
Subscribe to:
Post Comments (Atom)
Linux compiler error that never shown on Visual Studio
let's just admit Visual Studio sux ... ok ? right now, if you want to host a Private Ragnarok Online server, its just better to choose...
-
Ever since Hercules forked from rAthena since Jan 2013, Hercules has driven further away from its rAthena parent, many systems and feature...
-
conf\grf-files.txt //----------------------------------------- // GRF Files // Add as many as needed. //------------------------------------...
-
Useful Scripting Guides Shuffle Algorithm Sorting Algorithm What is the difference between .@i++ and ++.@i ? A simple walking npc scri...
I love your blog. Really. Please Keep write time to time if you're not busy.
ReplyDeleteI found out it very informative, nice, and with mind blowing things that i never knew.
Also, I remember you since 2007-2008 or like that (eathena.ws).
But you become a pro in around 2009, while I just to do something crazy only few years later.
<3
nice blog i hope more
ReplyDelete