[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
20010725: problems linking C++ netCDF on SunOS 5.7
- Subject: 20010725: problems linking C++ netCDF on SunOS 5.7
- Date: Wed, 25 Jul 2001 16:35:28 -0600
Martha,
>Date: Wed, 25 Jul 2001 16:30:52 -0600
>From: Martha Limber <address@hidden>
>Organization: ncar/rap
>To: Steve Emmerson <address@hidden>
>Subject: Re: 20010725: problems linking C++ netCDF on SunOS 5.7
>Keywords: 200107251747.f6PHlN121670
The above message contained the following:
> Thanks for your reply. I think this is the problem:
>
> > Could it be that a different C++ compiler built the netCDF library than
> > the one you're using to compile your program and that the C++
> > name-mangling is different in the two compilers?
>
> I did not have CXX set when compiling netcdf and so it chose
> c++. We are using g++ for our project, so the compilers didn't
> match.
Ah!
> I just tried to compile netcdf3.5 with g++ and received the following
> message
> when configuring the system:
>
> checking for g++... g++
> checking C++ compiler "g++"... configure: warning: g++ failed on test
> program
> configure: warning: Could not find working C++ compiler
> configure: warning: Setting CXX to the empty string
> configure: warning: The C++ interface will not be built
The reason that g++ failed to compile the test program should be in the
top-level file "config.log", which the configure script creates.
Regards,
Steve Emmerson <http://www.unidata.ucar.edu>