[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

20010725: build failure: C++ test program compilation failure



Martha,

>Date: Wed, 25 Jul 2001 16:39:35 -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: 200107252239.f6PMdZ103594

The above message contained the following:

>  filename="config.log"
> 
> This file contains any messages produced by compilers while
> running configure, to aid debugging if configure makes a mistake.
> 
> configure:928: checking for top-level source-directory
> configure:938: checking for m4 preprocessor
> configure:945: checking for m4
> configure:1012: checking m4 flags
> configure:1085: checking C compiler "gcc"
> configure:1094: gcc -c -O -DNDEBUG conftest.c 1>&5
> configure:1121: checking how to make dependencies
> configure:1189: checking for g++
> configure:1225: checking C++ compiler "g++"
> configure:1243: g++ -o conftest  -DNDEBUG  conftest.C  1>&5
> configure: failed program was:
> #line 1230 "configure"
> #include "confdefs.h"
> #ifdef __cplusplus
> extern "C" void exit(int);
> #endif
> 
>                               #include <iostream.h>
>                               int main() {
>                                   cout << "";
>                                   return 0;
>                               }

The compile should have successfully compiled the above program.  The
fact that it didn't indicates a severe problem with the compiler.  I
suggest that you attempt to manually compile the program and see what
error messages are generated.  You can omit the "#include "confdefs.h".

Regards,
Steve Emmerson   <http://www.unidata.ucar.edu>