Ron Shonkwiler wrote:
> Trying to compile hpoj-0.7 on IBM laptop running Corel Linux 2.1.
> I issue ./configure and get
>
> loading cache ./config.cache
> checking operating system... Linux
> checking for Linux kernel source... no. Try "./configure
> --with-linux=<dir>"
> checking for SNMP... no. Try "./configure --with-snmp=<dir>"
> checking for QT... no. Try "./configure --with-qt=<dir>"
> checking for gcc... gcc
> checking whether the C compiler (gcc ) works... yes
> checking whether the C compiler (gcc ) is a cross-compiler... no
> checking whether we are using GNU C... yes
> checking whether gcc accepts -g... yes
> checking for c++... no
> checking for g++... no
> checking for gcc... gcc
> checking whether the C++ compiler (gcc ) works... no
>
> How is it that the gcc compiler does not work as a C++ compiler?
Hi, Ron. I'm not familiar with Corel Linux, so I don't have an automatic
answer. It's possible that you might have a version of gcc installed that
can only compile C code and that a separate package needs to be installed
to get "c++" or "g++". Are you able to compile other C++ code on your
system using gcc?
From the above output, I see that you also don't have the Linux kernel
source code installed, or at least the configure script can't find it.
David
|