Author Topic: Problem building Shared_lib  (Read 3834 times)

rtr_18

  • Guest
Problem building Shared_lib
« on: 1 April 2009, 11:00:54 »
Hi!
    I'm trying to build the Shared_lib. i.e step no. 6 of this tutorial.

    https://docs.megaglest.org/Compiling
 I got the following errors.

Code: [Select]
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>c:\program files\microsoft platform sdk for windows xp sp2\include\winnt.h(3393) : error C2146: syntax error : missing ';' before identifier 'ContextRecord'
1>c:\program files\microsoft platform sdk for windows xp sp2\include\winnt.h(3393) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\program files\microsoft platform sdk for windows xp sp2\include\winnt.h(3393) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>model.cpp
1>model_manager.cpp
1>particle.cpp
1>pixmap.cpp
1>c:\program files\microsoft platform sdk for windows xp sp2\include\winnt.h(3393) : error C2146: syntax error : missing ';' before identifier 'ContextRecord'
1>c:\program files\microsoft platform sdk for windows xp sp2\include\winnt.h(3393) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\program files\microsoft platform sdk for windows xp sp2\include\winnt.h(3393) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>quaternion.cpp
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>d:\development\glestold\source\shared_lib\sources\platform\sdl\platform_util.cpp(14) : fatal error C1083: Cannot open include file: 'glob.h': No such file or directory
1>socket.cpp
1>d:\development\glestold\source\shared_lib\sources\platform\posix\socket.cpp(82) : error C2039: 'close' : is not a member of '`global namespace''
1>d:\development\glestold\source\shared_lib\sources\platform\posix\socket.cpp(82) : error C3861: 'close': identifier not found
1>d:\development\glestold\source\shared_lib\sources\platform\posix\socket.cpp(90) : error C3861: 'ioctl': identifier not found
1>d:\development\glestold\source\shared_lib\sources\platform\posix\socket.cpp(92) : error C2065: 'EAGAIN' : undeclared identifier
1>d:\development\glestold\source\shared_lib\sources\platform\posix\socket.cpp(101) : error C2065: 'ssize_t' : undeclared identifier
1>d:\development\glestold\source\shared_lib\sources\platform\posix\socket.cpp(101) : error C2146: syntax error : missing ';' before identifier 'bytesSent'
1>d:\development\glestold\source\shared_lib\sources\platform\posix\socket.cpp(101) : error C2065: 'bytesSent' : undeclared identifier
1>d:\development\glestold\source\shared_lib\sources\platform\posix\socket.cpp(109) : error C2146: syntax error : missing ';' before identifier 'bytesReceived'
1>d:\development\glestold\source\shared_lib\sources\platform\posix\socket.cpp(109) : error C2065: 'bytesReceived' : undeclared identifier
1>d:\development\glestold\source\shared_lib\sources\platform\posix\socket.cpp(117) : error C2146: syntax error : missing ';' before identifier 'err'
1>d:\development\glestold\source\shared_lib\sources\platform\posix\socket.cpp(117) : error C2065: 'err' : undeclared identifier
1>d:\development\glestold\source\shared_lib\sources\platform\posix\socket.cpp(126) : error C2065: 'F_SETFL' : undeclared identifier
1>d:\development\glestold\source\shared_lib\sources\platform\posix\socket.cpp(126) : error C2065: 'O_NONBLOCK' : undeclared identifier
1>d:\development\glestold\source\shared_lib\sources\platform\posix\socket.cpp(126) : error C3861: 'fcntl': identifier not found
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 - 21 error(s), 0 warning(s)
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========

How do I resolve these errors?
« Last Edit: 18 June 2016, 14:25:12 by filux »

bork

  • Guest
Re: Problem building Shared_lib
« Reply #1 on: 1 April 2009, 17:05:02 »
Looks like you need to remove platform/posix and platform/SDL from your project.

rtr_18

  • Guest
Re: Problem building Shared_lib
« Reply #2 on: 2 April 2009, 06:21:32 »
Looks like you need to remove platform/posix and platform/SDL from your project.

If I remove platform/posix and platform/SDL from my projecdt settings, it shows alot of fatal errors and already mentioned errors also not gone: I got the following list of errors.

Code: [Select]
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>shader.cpp
1>shader_manager.cpp
1>texture.cpp
1>texture_manager.cpp
1>context_gl.cpp
1>d:\development\glestold\source\shared_lib\include\platform\win32\gl_wrap.h(18) : fatal error C1083: Cannot open include file: 'glu.h': No such file or directory
1>font_gl.cpp
1>d:\development\glestold\source\shared_lib\include\platform\win32\gl_wrap.h(18) : fatal error C1083: Cannot open include file: 'glu.h': No such file or directory
1>model_renderer_gl.cpp
1>d:\development\glestold\source\shared_lib\include\platform\win32\gl_wrap.h(18) : fatal error C1083: Cannot open include file: 'glu.h': No such file or directory
1>opengl.cpp
1>d:\development\glestold\source\shared_lib\include\platform\win32\gl_wrap.h(18) : fatal error C1083: Cannot open include file: 'glu.h': No such file or directory
1>Generating Code...
1>Compiling...
1>particle_renderer_gl.cpp
1>d:\development\glestold\source\shared_lib\include\platform\win32\gl_wrap.h(18) : fatal error C1083: Cannot open include file: 'glu.h': No such file or directory
1>shader_gl.cpp
1>d:\development\glestold\source\shared_lib\include\platform\win32\gl_wrap.h(18) : fatal error C1083: Cannot open include file: 'glu.h': No such file or directory
1>text_renderer_gl.cpp
1>d:\development\glestold\source\shared_lib\include\platform\win32\gl_wrap.h(18) : fatal error C1083: Cannot open include file: 'glu.h': No such file or directory
1>texture_gl.cpp
1>d:\development\glestold\source\shared_lib\include\platform\win32\gl_wrap.h(18) : fatal error C1083: Cannot open include file: 'glu.h': No such file or directory
1>factory_repository.cpp
1>d:\development\glestold\source\shared_lib\include\platform\win32\gl_wrap.h(18) : fatal error C1083: Cannot open include file: 'glu.h': No such file or directory
1>gl_wrap.cpp
1>d:\development\glestold\source\shared_lib\include\platform\win32\gl_wrap.h(18) : fatal error C1083: Cannot open include file: 'glu.h': No such file or directory
1>platform_menu.cpp
1>platform_util.cpp
1>d:\development\glestold\source\shared_lib\sources\platform\sdl\platform_util.cpp(14) : fatal error C1083: Cannot open include file: 'glob.h': No such file or directory
1>socket.cpp
1>d:\development\glestold\source\shared_lib\sources\platform\posix\socket.cpp(82) : error C2039: 'close' : is not a member of '`global namespace''
1>d:\development\glestold\source\shared_lib\sources\platform\posix\socket.cpp(82) : error C3861: 'close': identifier not found
1>d:\development\glestold\source\shared_lib\sources\platform\posix\socket.cpp(90) : error C3861: 'ioctl': identifier not found
1>d:\development\glestold\source\shared_lib\sources\platform\posix\socket.cpp(92) : error C2065: 'EAGAIN' : undeclared identifier
1>d:\development\glestold\source\shared_lib\sources\platform\posix\socket.cpp(101) : error C2065: 'ssize_t' : undeclared identifier
1>d:\development\glestold\source\shared_lib\sources\platform\posix\socket.cpp(101) : error C2146: syntax error : missing ';' before identifier 'bytesSent'
1>d:\development\glestold\source\shared_lib\sources\platform\posix\socket.cpp(101) : error C2065: 'bytesSent' : undeclared identifier
1>d:\development\glestold\source\shared_lib\sources\platform\posix\socket.cpp(109) : error C2146: syntax error : missing ';' before identifier 'bytesReceived'
1>d:\development\glestold\source\shared_lib\sources\platform\posix\socket.cpp(109) : error C2065: 'bytesReceived' : undeclared identifier
1>d:\development\glestold\source\shared_lib\sources\platform\posix\socket.cpp(117) : error C2146: syntax error : missing ';' before identifier 'err'
1>d:\development\glestold\source\shared_lib\sources\platform\posix\socket.cpp(117) : error C2065: 'err' : undeclared identifier
1>d:\development\glestold\source\shared_lib\sources\platform\posix\socket.cpp(126) : error C2065: 'F_SETFL' : undeclared identifier
1>d:\development\glestold\source\shared_lib\sources\platform\posix\socket.cpp(126) : error C2065: 'O_NONBLOCK' : undeclared identifier
1>d:\development\glestold\source\shared_lib\sources\platform\posix\socket.cpp(126) : error C3861: 'fcntl': identifier not found
1>thread.cpp
1>d:\development\glestold\source\shared_lib\sources\platform\sdl\thread.cpp(15) : fatal error C1083: Cannot open include file: 'noimpl.h': No such file or directory
1>window.cpp
1>d:\development\glestold\source\shared_lib\sources\platform\sdl\window.cpp(19) : fatal error C1083: Cannot open include file: 'sdl_private.h': No such file or directory
1>window_gl.cpp
1>d:\development\glestold\source\shared_lib\include\platform\win32\gl_wrap.h(18) : fatal error C1083: Cannot open include file: 'glu.h': No such file or directory
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 - 28 error(s), 0 warning(s)
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========

What to do?
« Last Edit: 15 June 2016, 07:02:30 by filux »

bork

  • Guest
Re: Problem building Shared_lib
« Reply #3 on: 3 April 2009, 03:47:50 »
Looks like you need to remove platform/posix and platform/SDL from your project.

If I remove platform/posix and platform/SDL from my projecdt settings, it shows alot of fatal errors and already mentioned errors also not gone: I got the following list of errors.

[snip]

What to do?

Ok, first of all, why did you get platform/posix/socket.cpp compiled if you removed posix from build? Then you shoud check that you properly configured your project to use OpenGL SDK, glu.h is one of OpenGL headers, so it should be there.

rtr_18

  • Guest
Re: Problem building Shared_lib
« Reply #4 on: 3 April 2009, 09:54:48 »
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:

Code: [Select]
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?
« Last Edit: 15 June 2016, 07:02:57 by filux »

Yggdrasil

  • GAE Team
  • Ornithopter
  • ********
  • Posts: 408
    • View Profile
Re: Problem building Shared_lib
« Reply #5 on: 3 April 2009, 10:38:08 »
Somehow the compiler doesn't recognise the classes defined in shared_lib/include/graphics/quaternion.h
Make sure you include this file. But it's strange that there are no complains about missing it...

rtr_18

  • Guest
Re: Problem building Shared_lib
« Reply #6 on: 3 April 2009, 12:35:26 »
Somehow the compiler doesn't recognise the classes defined in shared_lib/include/graphics/quaternion.h
Make sure you include this file.

I've included the quaterninon.h file in the quaternion.cpp file. Also I've included "D:\Development\GlestOld\source\shared_lib\include\graphics" to Tools->Options->Include of my Project settings.
It's not working. So I've excluded quaternion.cpp from project and get the GlestLib compiled.

 

anything