Results 1 to 2 of 2

Thread: Template compiler error with qatomic_x86.h

  1. #1
    Join Date
    Aug 2008
    Posts
    24
    Thanks
    2
    Thanked 1 Time in 1 Post

    Default Template compiler error with qatomic_x86.h

    on RedHat 6.4 using gcc 4.4.6 I get the following template error in qatomic_x86.h

    The compiler command is:
    g++ -Wall -O0 -g3 -pipe -D_GLIBCXX_GTHREAD_USE_WEAK=0 -D_AIX -DVPP_CXXXLC -DRW_MULTI_THREAD -D_REENTRANT -DVISTAVIEW2 -DLINUX -D_GNU_SOURCE -D_XOPEN_SOURCE=1600 -D_RWCONFIG=12d_eval_redhat9 -I/usr/local/xprinter/include -I/include -I/usr/Versant/8/sdk/include/ -DNDEBUG -D_POWER -DOLYMPUS -DCRONUS -D_POSIX_SOURCE -D_ALL_SOURCE -DVERSANT_ANSI -D_THREAD_SAFE -D_REENTRANT -DVPP_CXXXLC -I. -I/working/projects/krzywick_RHEL_VG1.1_int/CentralStation/src/inc -I/src/inc -I/usr/Versant/8/sdk/include -I -I/usr/lpp/UMS/include -I/usr/lpp/som/include -I/opt/qt/mkspecs/linux-g++ -I. -I/opt/qt/include/QtCore -I/opt/qt/include/QtCore -I/opt/qt/include/QtGui -I/opt/qt/include -I../inc -c -o myfile.o myfile.C

    The errors I see are:
    /usr/Versant/8/sdk/include/cxxcls/perror.h: In member function ‘char* PError::get_error_number_str()’:
    /usr/Versant/8/sdk/include/cxxcls/perror.h:151: warning: format ‘%d’ expects type ‘int’, but argument 3 has type 'o_err’

    /opt/qt/include/QtCore/qatomic_x86.h: At global scope:
    /opt/qt/include/QtCore/qatomic_x86.h:168: error: new declaration 'static bool QBasicAtomicOps<1>::ref(T&)’
    /opt/qt/include/QtCore/qatomic_x86.h:99: error: ambiguates old declaration ‘static bool QBasicAtomicOps<size>::ref(T&) [with T = T, int size = 1]’
    /opt/qt/include/QtCore/qatomic_x86.h:181: error: new declaration ‘static bool QBasicAtomicOps<2>::ref(T&)’
    /opt/qt/include/QtCore/qatomic_x86.h:99: error: ambiguates old declaration ‘static bool QBasicAtomicOps<size>::ref(T&) [with T = T, int size = 2]’
    . . .
    . . .
    . . .

    Can anyone help with this ....

  2. #2
    Join Date
    Sep 2011
    Posts
    1,245
    Thanks
    3
    Thanked 127 Times in 126 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Template compiler error with qatomic_x86.h

    fix the first error that is in perror.h
    If you have a problem, CUT and PASTE your code. Do not retype or simplify it. Give a COMPLETE and COMPILABLE example of your problem. Otherwise we are all guessing the problem from a fabrication where relevant details are often missing.

Similar Threads

  1. Replies: 1
    Last Post: 14th August 2013, 01:09
  2. compiler and app error with qtcreator 2.3 and 4..7.4
    By creatio.x in forum Installation and Deployment
    Replies: 2
    Last Post: 6th September 2011, 10:16
  3. fatal error C1001: An internal error has occurred in the compiler
    By noodles in forum Installation and Deployment
    Replies: 0
    Last Post: 12th August 2010, 12:24
  4. Windows Compiler error
    By Maluko_Da_Tola in forum Newbie
    Replies: 2
    Last Post: 4th August 2010, 11:28
  5. Compiler Error
    By Maluko_Da_Tola in forum Newbie
    Replies: 2
    Last Post: 31st July 2010, 00:37

Tags for this Thread

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.