Results 1 to 2 of 2

Thread: I can't compile Clan 3.0.1 for Linux

  1. #1

    Default I can't compile Clan 3.0.1 for Linux

    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:perator<=(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:bject <= other.clan::ResourceObject:bject’
    ../../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.

  2. #2

    Default

    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.

Similar Threads

  1. Tests Sound SEE not compile on Linux
    By daltomi in forum Official ClanLib SDK Forums
    Replies: 3
    Last Post: 12-12-2013, 08:25 AM
  2. BAD CLAN AND HAWK CLAN LISTEN UP...😃
    By demonkid in forum Tanked
    Replies: 31
    Last Post: 02-18-2013, 10:17 PM
  3. Replies: 21
    Last Post: 01-06-2013, 02:14 PM
  4. Compile Error In Ubuntu Linux
    By Kurisu in forum Official ClanLib SDK Forums
    Replies: 2
    Last Post: 08-18-2008, 05:38 PM

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •