Results 1 to 7 of 7

Thread: ptrdiff_t does not name a type

  1. #1
    Registered User
    Join Date
    Feb 2012
    Posts
    2

    ptrdiff_t does not name a type

    Hello,

    trying to compile showeg 5.13.10.3 on ubuntu (11.10) but make fails.

    ./configure looks good
    http://pastebin.com/njZguGPP

    but make after that fails with /usr/include/qt3/qvaluevector.h:247:13: error: ‘ptrdiff_t’ does not name a type
    complete make output here http://pastebin.com/NND994bx

    any clues?

  2. #2
    Developer
    Join Date
    Jul 2004
    Posts
    920

    Re: ptrdiff_t does not name a type

    What version of gcc? Maybe your qt3 headers are out of date?

  3. #3
    Registered User
    Join Date
    Mar 2012
    Posts
    1

    Re: ptrdiff_t does not name a type

    Anyone found a solution to this? im getting the same error, Ubuntu 11.10, GCC is version 4.6.1

    Thanks

  4. #4
    Developer
    Join Date
    Jul 2004
    Posts
    920

    Re: ptrdiff_t does not name a type

    Maybe your qt3 headers are out of date?

  5. #5
    Registered User
    Join Date
    Feb 2012
    Posts
    2

    Re: ptrdiff_t does not name a type

    same problem here on ubuntu11.10 with libqt3-compat-headers 3:3.3.8-b-8ubuntu3
    gcc is 4.6.1

    cannot find more recent version like purple recommended²

    cannot compile without that package


    latest seq-release 5.3.10-4 compiles fine on ubuntu8.04 with same libqt3-headers



    any hint?
    Last edited by suntaa; 03-13-2012 at 06:58 AM.

  6. #6
    Registered User
    Join Date
    Mar 2012
    Posts
    21

    Re: ptrdiff_t does not name a type

    Here's a quick solution:

    sudo vi /usr/include/qt3/qvaluevector.h

    Under

    #include "qdatastream.h"

    Add this line:

    #include <cstddef>

  7. #7
    Developer
    Join Date
    Nov 2007
    Posts
    539

    Re: ptrdiff_t does not name a type

    Looks like it is a gcc 4.6 problem from what I see. I went ahead and got a copy of ubuntu 11.10 installed on my system to see what was going on. Good grief hated the new ubuntu unity interface first time saw it.

    In your showeq source files, src/message.h

    right after where you find:

    #include <stdint.h>

    add this:

    #include <cstddef>

    This should fix your problem. That way you stay out of the qt3 header files.

    Razzle

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

You may post new threads
You may post replies
You may post attachments
You may edit your posts
HTML code is Off
vB code is On
Smilies are On
[IMG] code is On