What happens if you try the following:

1. create a file called test.cc containing:
#include <iostream.h>

int main( int argc, char **argv )
{
        cout << "Hello, world." << endl;
        return 0;
}

2. Execute the command
g++ -o test test.cc

3. Execute the command
./test

On Mar 2, 2004, at 1:37 AM, Jared Hanson wrote:

OK, so I just tried to do a build on my PowerBook, which is only a couple weeks old so there shouldn't be any stray files lying around, and I ran into the same problem I posted Sunday afternoon. I didn't get any response, but I'd really like to do some development on this project, but if I can't get the damned thing to compile I'm SOL. Anyway, I'm going to post exact error messages in hopes that someone can help me out.

I've followed the instructions on the build pages to the tee (fink, SharedMenusCocoa.framework, etc, etc). When I fire off the make -w -f camino.mk it fails with the following error:

checking whether the C++ compiler (c++ ) works... no
configure: error: installation or configuration problem: C++ compiler cannot create executables.
configure: error: ./configure failed for nsprpub
*** Fix above errors and then restart with "make -f client.mk build"
make[1]: *** [/Mozilla/mozilla/Makefile] Error 1
make[1]: Leaving directory `/Mozilla/mozilla'
make: *** [build] Error 2
make: Leaving directory `/Mozilla/mozilla'



I cd'd into nsprpub to take a look at the config.log and the last few lines contain the following:


 configure:1872: checking whether the C++ compiler (c++ ) works
 configure:1888: c++ -o conftest conftest.C 1>&5
 ld: can't locate file for: -lcrt1.o
 configure: failed program was:

 #line 1883 "configure"
 #include "confdefs.h"

int main(){return(0);}

I'm really hoping someone can help me out. I've been messing with this for a few days now to no effect. I'm on a 10.3.2 system. I've tried it on a machine upgraded from 10.2.8 (a G5) and a PowerBook that was clean with 10.3.0 and upgraded to 10.3.2. Xcode 1.1 with cross compiling on both.

 Thanks,
 Jared

_______________________________________________
Camino mailing list
[EMAIL PROTECTED]
http://mozdev.org/mailman/listinfo/camino

_______________________________________________ Camino mailing list [EMAIL PROTECTED] http://mozdev.org/mailman/listinfo/camino

Reply via email to