[distcc] Compile Problem

Sam Clanton sclanton at oeic.net
Sun May 11 15:32:51 GMT 2003


Hello,

I'm new to distcc, trying to compile a c++ project that includes qt 
headers.  I am working between an OS X (Jaguar) laptop and a gentoo 
linux laptop.  When I compile my project I get the errors (listed 
below):

There are a number of ways around these specific problems but I'd like 
to not have to worry about this kind of thing when using distcc.

Thanks
Sam


c++ -c -fPIC -fno-common -pipe -Ddlsym=dlsym_auto_underscore -w -g  
-DQT_THREAD_SUPPORT -I/sw/mkspecs/darwin-g++ -I. -I/sw/include 
-I/usr/local/include/InsightToolkit -I/usr/local/include/vcl -I/sw/lib 
-I/sw/include/qt -I/include -I/usr/X11R6/include -I/usr/X11R6/include 
-I.ui/ -I.moc/ -o .obj/moc_ItkSegmentProcessor.o 
.moc/moc_ItkSegmentProcessor.cpp
In file included from 
/usr/include/gcc/darwin/3.1/g++-v3/bits/stl_algobase.h:69,
                  from /usr/include/gcc/darwin/3.1/g++-v3/memory:54,
                  from /usr/include/gcc/darwin/3.1/g++-v3/string:48,
                  from /sw/include/qt/qstring.h:46,
                  from /sw/include/qt/qwindowdefs.h:44,
                  from /sw/include/qt/qobject.h:43,
                  from ItkSegmentProcessor.hh:4,
                  from ItkSegmentProcessor.cc:1:
/usr/include/gcc/darwin/3.1/g++-v3/new:79: `operator new' takes type 
`size_t'
    (`unsigned int') as first parameter
/usr/include/gcc/darwin/3.1/g++-v3/new:80: `operator new' takes type 
`size_t'
    (`unsigned int') as first parameter
/usr/include/gcc/darwin/3.1/g++-v3/new:83: `operator new' takes type 
`size_t'
    (`unsigned int') as first parameter
/usr/include/gcc/darwin/3.1/g++-v3/new:84: `operator new' takes type 
`size_t'
    (`unsigned int') as first parameter
/usr/include/gcc/darwin/3.1/g++-v3/new:89: `operator new' takes type 
`size_t'
    (`unsigned int') as first parameter
/usr/include/gcc/darwin/3.1/g++-v3/new:90: `operator new' takes type 
`size_t'
    (`unsigned int') as first parameter
In file included from /usr/include/gcc/darwin/3.1/g++-v3/memory:54,
                  from /usr/include/gcc/darwin/3.1/g++-v3/string:48,
                  from /sw/include/qt/qstring.h:46,
                  from /sw/include/qt/qwindowdefs.h:44,
                  from /sw/include/qt/qobject.h:43,
                  from ItkSegmentProcessor.hh:4,
                  from ItkSegmentProcessor.cc:1:
/usr/include/gcc/darwin/3.1/g++-v3/bits/stl_algobase.h: In function 
`void
    std::fill(unsigned char*, unsigned char*, const unsigned char&)':
/usr/include/gcc/darwin/3.1/g++-v3/bits/stl_algobase.h:549: call of 
overloaded
    `memset(unsigned char*&, unsigned char&, int)' is ambiguous
<internal>:549: candidates are: void* std::memset(void*, int, unsigned 
int)
/usr/include/string.h:77:                 void* memset(void*, int, long
    unsigned int)
/usr/include/gcc/darwin/3.1/g++-v3/bits/stl_algobase.h: In function 
`void
    std::fill(signed char*, signed char*, const signed char&)':
/usr/include/gcc/darwin/3.1/g++-v3/bits/stl_algobase.h:556: call of 
overloaded
    `memset(signed char*&, unsigned char&, int)' is ambiguous
<internal>:556: candidates are: void* std::memset(void*, int, unsigned 
int)
/usr/include/string.h:77:                 void* memset(void*, int, long
    unsigned int)
/usr/include/gcc/darwin/3.1/g++-v3/bits/stl_algobase.h: In function 
`void
    std::fill(char*, char*, const char&)':
/usr/include/gcc/darwin/3.1/g++-v3/bits/stl_algobase.h:563: call of 
overloaded
    `memset(char*&, unsigned char&, int)' is ambiguous
<internal>:563: candidates are: void* std::memset(void*, int, unsigned 
int)
/usr/include/string.h:77:                 void* memset(void*, int, long
    unsigned int)



More information about the distcc mailing list