• 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 [Tutorial] Compiling newest CVS(C++ version)

Xanix

GHIII
Joined
Oct 24, 2007
Messages
176
Reaction score
2
Location
Sweden, GBG
You'll need glfw and gmp libraries and headers.

Compiling under Dev-Cpp


File->New->Project...

Click on windows application, change name and then click ok.

After saving delete main.cpp form project.

Now add all .cpp and .h files from OTclient directory.

Project->Options->Parameters

to linker add following libraries:

libglfw.a
libglu32.a
libopengl32.a
libwsock32.a

Rebuild all and run. glfw.dll and gmp.dll libraries should be in project directory.

That's all

Micorosoft Visual C++

Microsoft gave big present for us. They Visual Studio Express is free. You can get it there:

http://msdn.microsoft.com/vstudio/express/visualc/

You'll also need some headers from Platform SDK, which you can find there:

http://www.microsoft.com/downloads/d...displaylang=en

Visual c++ might not find headers form Platform SDK, if it happens, go to your Visual c++ directory, then to 'VC' directory and make PlatformSDK folder. Copy 'Bin', 'Include' and 'Lib' form 'real' PlatformSDK directory to 'VC/PlatformSDK'.

Run VC.

Then go to 'File->New->Project' and chose empty project. Name as you want.

To header files add all '.h' files, to source files add all '.cpp' files.

Then go to Project->Properties->Configuration Properties->Linker->Command Line and in 'Additional Options' add:

/SUBSYSTEM:WINDOWS /ENTRY:mainCRTStartup

Additional options:

I set Link Time Code generation in Linker->Optimization

and c/c++->Optimization optimization to Full Optimization and Whole Program Optimization to Enable link-time code generation.

That's all.
 
It's looking a bit thin, you should explain more and tell where to get the programs and stuff. But I guess this isn't a tutorial for newbies :p
 
Back
Top