I've excluded socket.cpp from project. Now everything compiles fine except it shows a lot of errors in quaterninon.cpp alone. The errors I got:
1>------ Rebuild All started: Project: GlestLib, Configuration: Debug Win32 ------
1>Deleting intermediate and output files for project 'GlestLib', configuration 'Debug|Win32'
1>Compiling...
1>stdafx.cpp
1>Compiling...
1>buffer.cpp
1>camera.cpp
1>context.cpp
1>font.cpp
1>font_manager.cpp
1>graphics_interface.cpp
1>interpolation.cpp
1>model.cpp
1>model_manager.cpp
1>particle.cpp
1>pixmap.cpp
1>quaternion.cpp
1>d:\development\glestold\source\shared_lib\sources\graphics\quaternion.cpp(25) : error C2653: 'AxisAngle' : is not a class or namespace name
1>d:\development\glestold\source\shared_lib\sources\graphics\quaternion.cpp(26) : error C2673: 'Shared::Graphics::AxisAngle' : global functions do not have 'this' pointers
1>d:\development\glestold\source\shared_lib\sources\graphics\quaternion.cpp(26) : error C2227: left of '->axis' must point to class/struct/union/generic type
1>d:\development\glestold\source\shared_lib\sources\graphics\quaternion.cpp(27) : error C2673: 'Shared::Graphics::AxisAngle' : global functions do not have 'this' pointers
1>d:\development\glestold\source\shared_lib\sources\graphics\quaternion.cpp(27) : error C2227: left of '->angle' must point to class/struct/union/generic type
1>d:\development\glestold\source\shared_lib\sources\graphics\quaternion.cpp(34) : error C2653: 'EulerAngles' : is not a class or namespace name
1>d:\development\glestold\source\shared_lib\sources\graphics\quaternion.cpp(35) : error C2673: 'Shared::Graphics::EulerAngles' : global functions do not have 'this' pointers
1>d:\development\glestold\source\shared_lib\sources\graphics\quaternion.cpp(35) : error C2227: left of '->x' must point to class/struct/union/generic type
1>d:\development\glestold\source\shared_lib\sources\graphics\quaternion.cpp(36) : error C2673: 'Shared::Graphics::EulerAngles' : global functions do not have 'this' pointers
1>d:\development\glestold\source\shared_lib\sources\graphics\quaternion.cpp(36) : error C2227: left of '->y' must point to class/struct/union/generic type
1>d:\development\glestold\source\shared_lib\sources\graphics\quaternion.cpp(37) : error C2673: 'Shared::Graphics::EulerAngles' : global functions do not have 'this' pointers
1>d:\development\glestold\source\shared_lib\sources\graphics\quaternion.cpp(37) : error C2227: left of '->z' must point to class/struct/union/generic type
1>d:\development\glestold\source\shared_lib\sources\graphics\quaternion.cpp(44) : error C2653: 'Quaternion' : is not a class or namespace name
1>d:\development\glestold\source\shared_lib\sources\graphics\quaternion.cpp(45) : error C3861: 'setMultIdentity': identifier not found
1>d:\development\glestold\source\shared_lib\sources\graphics\quaternion.cpp(48) : error C2653: 'Quaternion' : is not a class or namespace name
1>d:\development\glestold\source\shared_lib\sources\graphics\quaternion.cpp(49) : error C2673: 'Shared::Graphics::Quaternion' : global functions do not have 'this' pointers
1>d:\development\glestold\source\shared_lib\sources\graphics\quaternion.cpp(49) : error C2227: left of '->w' must point to class/struct/union/generic type
1>d:\development\glestold\source\shared_lib\sources\graphics\quaternion.cpp(50) : error C2673: 'Shared::Graphics::Quaternion' : global functions do not have 'this' pointers
1>d:\development\glestold\source\shared_lib\sources\graphics\quaternion.cpp(50) : error C2227: left of '->v' must point to class/struct/union/generic type
1>d:\development\glestold\source\shared_lib\sources\graphics\quaternion.cpp(53) : error C2653: 'Quaternion' : is not a class or namespace name
1>d:\development\glestold\source\shared_lib\sources\graphics\quaternion.cpp(53) : error C2143: syntax error : missing ',' before '&'
1>d:\development\glestold\source\shared_lib\sources\graphics\quaternion.cpp(54) : error C2065: 'eulerAngles' : undeclared identifier
1>d:\development\glestold\source\shared_lib\sources\graphics\quaternion.cpp(54) : error C3861: 'setEuler': identifier not found
1>d:\development\glestold\source\shared_lib\sources\graphics\quaternion.cpp(57) : error C2653: 'Quaternion' : is not a class or namespace name
1>d:\development\glestold\source\shared_lib\sources\graphics\quaternion.cpp(57) : error C2143: syntax error : missing ',' before '&'
1>d:\development\glestold\source\shared_lib\sources\graphics\quaternion.cpp(57) : error C2084: function 'int Shared::Graphics::Quaternion(const int)' already has a body
1> d:\development\glestold\source\shared_lib\sources\graphics\quaternion.cpp(53) : see previous definition of 'Quaternion'
1>d:\development\glestold\source\shared_lib\sources\graphics\quaternion.cpp(58) : error C2065: 'axisAngle' : undeclared identifier
1>d:\development\glestold\source\shared_lib\sources\graphics\quaternion.cpp(58) : error C3861: 'setAxisAngle': identifier not found
1>d:\development\glestold\source\shared_lib\sources\graphics\quaternion.cpp(61) : error C2653: 'Quaternion' : is not a class or namespace name
1>d:\development\glestold\source\shared_lib\sources\graphics\quaternion.cpp(66) : error C2653: 'Quaternion' : is not a class or namespace name
1>d:\development\glestold\source\shared_lib\sources\graphics\quaternion.cpp(71) : error C2653: 'Quaternion' : is not a class or namespace name
1>d:\development\glestold\source\shared_lib\sources\graphics\quaternion.cpp(71) : error C2143: syntax error : missing ',' before '&'
1>d:\development\glestold\source\shared_lib\sources\graphics\quaternion.cpp(72) : error C2228: left of '.angle' must have class/struct/union
1> type is ''unknown-type''
1>d:\development\glestold\source\shared_lib\sources\graphics\quaternion.cpp(73) : error C2228: left of '.x' must have class/struct/union
1> type is ''unknown-type''
1>d:\development\glestold\source\shared_lib\sources\graphics\quaternion.cpp(73) : error C2228: left of '.axis' must have class/struct/union
1> type is ''unknown-type''
1>d:\development\glestold\source\shared_lib\sources\graphics\quaternion.cpp(73) : error C2228: left of '.x' must have class/struct/union
1>d:\development\glestold\source\shared_lib\sources\graphics\quaternion.cpp(73) : error C2228: left of '.angle' must have class/struct/union
1> type is ''unknown-type''
1>d:\development\glestold\source\shared_lib\sources\graphics\quaternion.cpp(74) : error C2228: left of '.y' must have class/struct/union
1> type is ''unknown-type''
1>d:\development\glestold\source\shared_lib\sources\graphics\quaternion.cpp(74) : error C2228: left of '.axis' must have class/struct/union
1> type is ''unknown-type''
1>d:\development\glestold\source\shared_lib\sources\graphics\quaternion.cpp(74) : error C2228: left of '.y' must have class/struct/union
1>d:\development\glestold\source\shared_lib\sources\graphics\quaternion.cpp(74) : error C2228: left of '.angle' must have class/struct/union
1> type is ''unknown-type''
1>d:\development\glestold\source\shared_lib\sources\graphics\quaternion.cpp(75) : error C2228: left of '.z' must have class/struct/union
1> type is ''unknown-type''
1>d:\development\glestold\source\shared_lib\sources\graphics\quaternion.cpp(75) : error C2228: left of '.axis' must have class/struct/union
1> type is ''unknown-type''
1>d:\development\glestold\source\shared_lib\sources\graphics\quaternion.cpp(75) : error C2228: left of '.z' must have class/struct/union
1>d:\development\glestold\source\shared_lib\sources\graphics\quaternion.cpp(75) : error C2228: left of '.angle' must have class/struct/union
1> type is ''unknown-type''
1>d:\development\glestold\source\shared_lib\sources\graphics\quaternion.cpp(78) : error C2653: 'Quaternion' : is not a class or namespace name
1>d:\development\glestold\source\shared_lib\sources\graphics\quaternion.cpp(78) : error C2143: syntax error : missing ',' before '&'
1>d:\development\glestold\source\shared_lib\sources\graphics\quaternion.cpp(79) : error C2146: syntax error : missing ';' before identifier 'qx'
1>d:\development\glestold\source\shared_lib\sources\graphics\quaternion.cpp(79) : error C2065: 'qx' : undeclared identifier
1>d:\development\glestold\source\shared_lib\sources\graphics\quaternion.cpp(79) : error C2065: 'qy' : undeclared identifier
1>d:\development\glestold\source\shared_lib\sources\graphics\quaternion.cpp(79) : error C2065: 'qz' : undeclared identifier
1>d:\development\glestold\source\shared_lib\sources\graphics\quaternion.cpp(79) : error C2065: 'qr' : undeclared identifier
1>d:\development\glestold\source\shared_lib\sources\graphics\quaternion.cpp(81) : error C2228: left of '.w' must have class/struct/union
1> type is ''unknown-type''
1>d:\development\glestold\source\shared_lib\sources\graphics\quaternion.cpp(81) : error C2228: left of '.x' must have class/struct/union
1> type is ''unknown-type''
1>d:\development\glestold\source\shared_lib\sources\graphics\quaternion.cpp(82) : error C2228: left of '.v' must have class/struct/union
1> type is ''unknown-type''
1>d:\development\glestold\source\shared_lib\sources\graphics\quaternion.cpp(82) : error C2228: left of '.x' must have class/struct/union
1> type is ''unknown-type''
1>d:\development\glestold\source\shared_lib\sources\graphics\quaternion.cpp(84) : error C2228: left of '.w' must have class/struct/union
1> type is ''unknown-type''
1>d:\development\glestold\source\shared_lib\sources\graphics\quaternion.cpp(84) : error C2228: left of '.y' must have class/struct/union
1> type is ''unknown-type''
1>d:\development\glestold\source\shared_lib\sources\graphics\quaternion.cpp(85) : error C2228: left of '.v' must have class/struct/union
1> type is ''unknown-type''
1>d:\development\glestold\source\shared_lib\sources\graphics\quaternion.cpp(85) : error C2228: left of '.y' must have class/struct/union
1> type is ''unknown-type''
1>d:\development\glestold\source\shared_lib\sources\graphics\quaternion.cpp(87) : error C2228: left of '.w' must have class/struct/union
1> type is ''unknown-type''
1>d:\development\glestold\source\shared_lib\sources\graphics\quaternion.cpp(87) : error C2228: left of '.z' must have class/struct/union
1> type is ''unknown-type''
1>d:\development\glestold\source\shared_lib\sources\graphics\quaternion.cpp(88) : error C2228: left of '.v' must have class/struct/union
1> type is ''unknown-type''
1>d:\development\glestold\source\shared_lib\sources\graphics\quaternion.cpp(88) : error C2228: left of '.z' must have class/struct/union
1> type is ''unknown-type''
1>d:\development\glestold\source\shared_lib\sources\graphics\quaternion.cpp(92) : error C2228: left of '.w' must have class/struct/union
1> type is ''unknown-type''
1>d:\development\glestold\source\shared_lib\sources\graphics\quaternion.cpp(93) : error C2228: left of '.v' must have class/struct/union
1> type is ''unknown-type''
1>d:\development\glestold\source\shared_lib\sources\graphics\quaternion.cpp(96) : error C2653: 'Quaternion' : is not a class or namespace name
1>d:\development\glestold\source\shared_lib\sources\graphics\quaternion.cpp(97) : error C2228: left of '.x' must have class/struct/union
1> type is ''unknown-type''
1>d:\development\glestold\source\shared_lib\sources\graphics\quaternion.cpp(97) : error C2228: left of '.x' must have class/struct/union
1> type is ''unknown-type''
1>d:\development\glestold\source\shared_lib\sources\graphics\quaternion.cpp(97) : error C2228: left of '.y' must have class/struct/union
1> type is ''unknown-type''
1>d:\development\glestold\source\shared_lib\sources\graphics\quaternion.cpp(97) : error C2228: left of '.y' must have class/struct/union
1> type is ''unknown-type''
1>d:\development\glestold\source\shared_lib\sources\graphics\quaternion.cpp(97) : error C2228: left of '.z' must have class/struct/union
1> type is ''unknown-type''
1>d:\development\glestold\source\shared_lib\sources\graphics\quaternion.cpp(97) : error C2228: left of '.z' must have class/struct/union
1> type is ''unknown-type''
1>d:\development\glestold\source\shared_lib\sources\graphics\quaternion.cpp(100) : error C2653: 'Quaternion' : is not a class or namespace name
1>d:\development\glestold\source\shared_lib\sources\graphics\quaternion.cpp(100) : error C2146: syntax error : missing ';' before identifier 'conjugate'
1>d:\development\glestold\source\shared_lib\sources\graphics\quaternion.cpp(100) : error C2365: 'Shared::Graphics::Quaternion' : redefinition; previous definition was 'function'
1>d:\development\glestold\source\shared_lib\sources\graphics\quaternion.cpp(104) : error C2653: 'Quaternion' : is not a class or namespace name
1>d:\development\glestold\source\shared_lib\sources\graphics\quaternion.cpp(110) : error C2653: 'Quaternion' : is not a class or namespace name
1>d:\development\glestold\source\shared_lib\sources\graphics\quaternion.cpp(110) : error C2146: syntax error : missing ';' before identifier '+'
1>d:\development\glestold\source\shared_lib\sources\graphics\quaternion.cpp(110) : error C2365: 'Shared::Graphics::Quaternion' : redefinition; previous definition was 'function'
1>d:\development\glestold\source\shared_lib\sources\graphics\quaternion.cpp(110) : error C2143: syntax error : missing ',' before '&'
1>d:\development\glestold\source\shared_lib\sources\graphics\quaternion.cpp(110) : error C2270: '+' : modifiers not allowed on nonmember functions
1>d:\development\glestold\source\shared_lib\sources\graphics\quaternion.cpp(111) : error C2065: 'q' : undeclared identifier
1>d:\development\glestold\source\shared_lib\sources\graphics\quaternion.cpp(111) : error C2228: left of '.w' must have class/struct/union
1> type is ''unknown-type''
1>d:\development\glestold\source\shared_lib\sources\graphics\quaternion.cpp(111) : error C2228: left of '.v' must have class/struct/union
1> type is ''unknown-type''
1>d:\development\glestold\source\shared_lib\sources\graphics\quaternion.cpp(111) : error C2064: term does not evaluate to a function taking 2 arguments
1>d:\development\glestold\source\shared_lib\sources\graphics\quaternion.cpp(113) : error C2653: 'Quaternion' : is not a class or namespace name
1>d:\development\glestold\source\shared_lib\sources\graphics\quaternion.cpp(113) : error C2146: syntax error : missing ';' before identifier '*'
1>d:\development\glestold\source\shared_lib\sources\graphics\quaternion.cpp(113) : error C2365: 'Shared::Graphics::Quaternion' : redefinition; previous definition was 'function'
1>d:\development\glestold\source\shared_lib\sources\graphics\quaternion.cpp(113) : error C2143: syntax error : missing ',' before '&'
1>d:\development\glestold\source\shared_lib\sources\graphics\quaternion.cpp(113) : error C2270: '*' : modifiers not allowed on nonmember functions
1>d:\development\glestold\source\shared_lib\sources\graphics\quaternion.cpp(115) : error C2228: left of '.w' must have class/struct/union
1> type is ''unknown-type''
1>d:\development\glestold\source\shared_lib\sources\graphics\quaternion.cpp(115) : error C2228: left of '.x' must have class/struct/union
1> type is ''unknown-type''
1>d:\development\glestold\source\shared_lib\sources\graphics\quaternion.cpp(115) : error C2228: left of '.v' must have class/struct/union
1> type is ''unknown-type''
1>d:\development\glestold\source\shared_lib\sources\graphics\quaternion.cpp(115) : error C2228: left of '.x' must have class/struct/union
1>d:\development\glestold\source\shared_lib\sources\graphics\quaternion.cpp(115) : error C2228: left of '.y' must have class/struct/union
1> type is ''unknown-type''
1>d:\development\glestold\source\shared_lib\sources\graphics\quaternion.cpp(115) : error C2228: left of '.v' must have class/struct/union
1> type is ''unknown-type''
1>d:\development\glestold\source\shared_lib\sources\graphics\quaternion.cpp(115) : error C2228: left of '.y' must have class/struct/union
1>d:\development\glestold\source\shared_lib\sources\graphics\quaternion.cpp(115) : error C2228: left of '.z' must have class/struct/union
1> type is ''unknown-type''
1>d:\development\glestold\source\shared_lib\sources\graphics\quaternion.cpp(115) : error C2228: left of '.v' must have class/struct/union
1> type is ''unknown-type''
1>d:\development\glestold\source\shared_lib\sources\graphics\quaternion.cpp(115) : error C2228: left of '.z' must have class/struct/union
1>d:\development\glestold\source\shared_lib\sources\graphics\quaternion.cpp(115) : fatal error C1003: error count exceeds 100; stopping compilation
1>shader.cpp
1>shader_manager.cpp
1>texture.cpp
1>texture_manager.cpp
1>context_gl.cpp
1>font_gl.cpp
1>model_renderer_gl.cpp
1>opengl.cpp
1>Generating Code...
1>Compiling...
1>particle_renderer_gl.cpp
1>shader_gl.cpp
1>text_renderer_gl.cpp
1>texture_gl.cpp
1>factory_repository.cpp
1>gl_wrap.cpp
1>platform_menu.cpp
1>platform_util.cpp
1>socket.cpp
1>thread.cpp
1>window.cpp
1>window_gl.cpp
1>sound.cpp
1>sound_file_loader.cpp
1>sound_interface.cpp
1>sound_player.cpp
1>checksum.cpp
1>conversion.cpp
1>leak_dumper.cpp
1>profiler.cpp
1>Generating Code...
1>Compiling...
1>properties.cpp
1>random.cpp
1>util.cpp
1>xml_parser.cpp
1>Generating Code...
1>Build log was saved at "file://d:\Development\GlestOld\GlestLib\Debug\BuildLog.htm"
1>GlestLib - 102 error(s), 0 warning(s)
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========
What should I do? Shall I exclude quaternion.cpp also from project?