Results 1 to 4 of 4

Thread: Strange error

  1. #1
    Join Date
    Feb 2006
    Posts
    157
    Thanks
    12
    Thanked 1 Time in 1 Post
    Qt products
    Qt3 Qt4

    Default Strange error

    Hello guys,

    i am getting the following error while i was compiling a "Simple Hello world" program in Kdevelop 3.5.5 - ( in Opensuse 10.2 )
    errors :-


    /usr/include/c++/4.1.2/i586-suse-linux/bits/c++config.h:43: error: expected constructor, destructor, or type conversion before ‘namespace’
    /usr/include/c++/4.1.2/i586-suse-linux/bits/c++config.h:47: error: ‘__gnu_debug_def’ is not a namespace-name
    /usr/include/c++/4.1.2/i586-suse-linux/bits/c++config.h:47: error: expected namespace-name before ‘;’ token
    gmake[2]: *** [basemolecule.o] Error 1

    please help me to resolve it
    thanks in advance
    Last edited by jpn; 8th February 2008 at 10:47. Reason: missing [quote] tags

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Strange error

    Can we see the code?

  3. #3
    Join Date
    Feb 2006
    Posts
    157
    Thanks
    12
    Thanked 1 Time in 1 Post
    Qt products
    Qt3 Qt4

    Default Re: Strange error

    These all are the errors am getting ( i cann;t give the entire solution as it is little bit heavy )

    Qt Code:
    1. cd '/home/febyj/Desktop/Try_SynthesisTool_Linux/synthesis_tool/debug' && WANT_AUTOCONF_2_5="1" WANT_AUTOMAKE_1_6="1" gmake -k
    2. gmake all-recursive
    3. Making all in src
    4. compiling basemolecule.cpp (g++)
    5. /usr/include/c++/4.1.2/i586-suse-linux/bits/c++config.h:43: error: expected constructor, destructor, or type conversion before ‘namespace’
    6. /usr/include/c++/4.1.2/i586-suse-linux/bits/c++config.h:47: error: ‘__gnu_debug_def’ is not a namespace-name
    7. /usr/include/c++/4.1.2/i586-suse-linux/bits/c++config.h:47: error: expected namespace-name before ‘;’ token
    8. gmake[2]: *** [basemolecule.o] Error 1
    9. gmake[2]: Target `all' not remade because of errors.
    10. gmake[2]: Nothing to be done for `all-am'.
    11. gmake[1]: *** [all-recursive] Error 1
    12. gmake: *** [all] Error 2
    13. *** Exited with status: 2 ***
    To copy to clipboard, switch view to plain text mode 



    Is there any project setting i have to set .
    Please help me ...

  4. #4
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Strange error

    Perhaps a missing semi-colon (";") in one of header files included by basemolecule.cpp...
    J-P Nurmi

Similar Threads

  1. QPSQL driver in windows
    By brevleq in forum Installation and Deployment
    Replies: 31
    Last Post: 14th December 2007, 12:57
  2. Error compiling psql plugin
    By vieraci in forum Installation and Deployment
    Replies: 4
    Last Post: 7th October 2007, 02:49
  3. qt 4.2.2 install on aix
    By try to remember in forum Installation and Deployment
    Replies: 2
    Last Post: 28th March 2007, 12:19
  4. Qt-x11-commercial-src-4.2.0-snapshot-20060824 error
    By DevObject in forum Installation and Deployment
    Replies: 4
    Last Post: 24th August 2006, 23:31
  5. use qpsql
    By raphaelf in forum Installation and Deployment
    Replies: 34
    Last Post: 22nd August 2006, 12:52

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.