Re: ABS compile error

Meredydd <[email protected]> Thu, 15 May 2003 10:50:49 +0100
Newsgroups gmane.network.everybuddy.user
Message-ID <[email protected]>
On Saturday 14 June 2003 08:56, guh wrote:
> ok, after taking some time away from eb-lite, i thought it was time to
> try again since I saw alpha 9 was released with this ABS to make things
> easier.  I ran ./configure in alpah-9abs/core/ with only one error:
Hmm - if it's ABS, you shouldn't be running "configure" - there shouldn't *be* 
a configure - try running ./config.mer. From the output you list later, 
bizarrely, it looks like that's what you did...

> /bin/sh: line 1: c++: command not found

> I checked that c++ is indeed an invalid command, but g++ and gcc both
> work.  Is c++ something I need installed separately?
Hmm, that's odd. "c++" is supposed to generically call the C++ compiler, in 
much the same way as "cc" generically calls the C compiler. Normally, "c++" 
is just a symlink to "g++" (which is itself a link to gcc). GCC just looks at 
the name that's been used to call it, and if it's "g++" or "c++", enables the 
default C++ link options.

You have a couple of options:

(a)	Try "which g++". If it was, say, in /usr/bin/g++, then you can make a link 
to it with:
	ln -s g++ /usr/bin/c++
(as root, of course)

(b)	Edit the Makefile - unlike the autotools-created monstrosities, the ABS 
makefiles are quite simple to edit. Look for the line in 
eb-lite-alpha9/core/src/Makefile which starts with "c++", and change it to 
"g++". No root access required, and it should build after this. Downside is 
that you'd have to do it again each time 

Meredydd
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.