PDA

View Full Version : I can't compile Clan 3.0.1 for Linux



Whiso
03-16-2014, 10:01 AM
Hi Guys, your library seem looks amazing, I want to use it in my personal linux's project but I can't compile it,
I got this compile issue, I think is an header error but I'm not pretty sure

libtool: compile: g++ -DPACKAGE_NAME=\"ClanLib\" -DPACKAGE_TARNAME=\"clanlib\" -DPACKAGE_VERSION=\"3.0.1\" "-DPACKAGE_STRING=\"ClanLib 3.0.1\"" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"clanlib\" -DVERSION=\"3.0.1\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DSTDC_HEADERS=1 -DHAVE_STDBOOL_H=1 -DHAVE_UNISTD_H=1 -DHAVE_FCNTL_H=1 -DHAVE_SYS_KD_H=1 -DHAVE_SYS_VT_H=1 -DHAVE_SYS_SYSCTL_H=1 -DHAVE_FSTAB_H=1 -DEXTERN___PROGNAME=1 -DHAVE_WCSCASECMP=1 -DHAVE_TLS=1 -DHAVE_LINUX_JOYSTICK_H=1 -DHAVE_LINUX_INPUT_H=1 -DHAVE_X11_EXTENSIONS_XRENDER_H=1 -DHAVE_GLX_GETPROCADDRESSARB=1 -DHAVE_SYS_SOUNDCARD_H=1 -DHAVE_ALSA_ASOUNDLIB_H=1 -DUSE_GETADDR=1 -I. -g -O2 -std=c++0x -msse2 -I/usr/include/freetype2 -I../../Sources -MT libclan30GL_la-opengl_target.lo -MD -MP -MF .deps/libclan30GL_la-opengl_target.Tpo -c opengl_target.cpp -fPIC -DPIC -o .libs/libclan30GL_la-opengl_target.o
In file included from ../../Sources/API/Core/Resources/resource_container.h:33:0,
from ../../Sources/API/core.h:120,
from ../../Sources/GL/precomp.h:40,
from precomp.cpp:29:
../../Sources/API/Core/Resources/resource_object.h: In member function ‘bool clan::ResourceObject::operator<=(const clan::ResourceObject&) const’:
../../Sources/API/Core/Resources/resource_object.h:73:78: error: no match for ‘operator<=’ in ‘((const clan::ResourceObject*)this)->clan::ResourceObject::object <= other.clan::ResourceObject::object’
../../Sources/API/Core/Resources/resource_object.h:73:78: note: candidates are:
../../Sources/API/Core/Resources/resource_object.h:73:78: note: operator<=(int, int) <built-in>
../../Sources/API/Core/Resources/resource_object.h:73:78: note: no known conversion for argument 2 from ‘const std::shared_ptr<clan::Resource_BaseImpl>’ to ‘int’

Could you someone help me?

Regards,
Whiso.

Whiso
03-16-2014, 10:58 PM
I resolved it!! I don't tell you how I resolved, HHAHAHHAAHHAHA,
.
.
.
.
.
.
.

..
.
I just kidding, I just update gcc compiler from 4.6 to 4.8, and then after that all was wonderful!!
Regards,
Luis.