Re: Can't compile C++ code

Martin Pool <[email protected]>
Newsgroups gmane.comp.compilers.distcc
Message-ID <[email protected]>
2009/7/10 Crístian Viana <[email protected]>:

> I thought that using distcc should be as simple as changing the compiler
> from gcc/g++ (both of them) to distcc, in the Makefile (aside the distcc
> configuration, daemon, etc). But it turned out that way won't work... your
> solution of using 'CC=distcc CXX="distcc g++" actually works, but this is
> not my ideal solution. CMake, for example, won't accept "distcc g++" as the
> compiler command, it only accepts one binary file/command. Maybe there
> should be two commands, like "distcc" and "distc++", and I would specify
> those commands as the new compilers. If "cc" alone can't handle every
> compilation, "distcc" alone shouldn't too...

Why not use masquerade mode here, it handles this case?

You said previously you appended it to the path but in fact you have
to prepend it, ie put it before the real compiler.

-- 
Martin <http://launchpad.net/~mbp/>
__ 
distcc mailing list            http://distcc.samba.org/
To unsubscribe or change options: 
https://lists.samba.org/mailman/listinfo/distcc
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.