• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Compiling Error - Codeblocks

Allesn

Member
Joined
May 4, 2011
Messages
204
Solutions
1
Reaction score
24
I followed the tutorial step by step and everything was going perfectly, however, it is a series of errors at compile time using codeblocks.
Image:
tiroyEB.jpg


Someone can help me?
 
same here '-'
i google it and search something about to change the flags -std=c++11 to std=gnu++11 but not works i guess

could someone help us?
 
Use msvc for compiling, after changes to source code, wiki wasn't updated! So best way to compile is by using msvc.
 
Use msvc for compiling, after changes to source code, wiki wasn't updated! So best way to compile is by using msvc.

I have installed the vs2015 to compile tfs, and now when I run otclient project on 2013 it crashes ide, and back on 2015 I got library error.
 
I have installed the vs2015 to compile tfs, and now when I run otclient project on 2013 it crashes ide, and back on 2015 I got library error.
Then, what is best solution? Install vs2013 untill someone will make libs for vs2015.
 
I followed the tutorial step by step and everything was going perfectly, however, it is a series of errors at compile time using codeblocks.
Image:
tiroyEB.jpg


Someone can help me?
Hello, I've got the same problem lately. So, I google it and found a solution for me and I hope this works for you too. Here it goes:
I'm using Codeblocks and followed all the tutorial about how to compile in windows, like you did.

First: You go to "C:\MinGW\lib\gcc\mingw32\4.9.3\include\c++" and edit cstdio file. Before these two lines:
  • #include <bits/c++config.h>
  • #include <stdio.h>
Put this line:
  • #undef __STRICT_ANSI__
Second: You go to "C:\otclient-master" it is your otclient folder. Then, edit CMakeLists.txt (I recommend to edit using Notepad++ or your Codeblocks). Add this line:
  • set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=gnu++11")
Apparently there is a bug with the newer MinGW, so you have to compile, in this case, using -std=gnu++11 instead of -std=c++11.

All done. This is what I found so far. Hope you solve your problem.
 
Last edited:
compile with VS2013 it works to me ;D
u just need download visual studio 2013, open the project, include the linker and libs to the project and finally compile ;d
 
Back
Top