Re: [htdig] configure under BSD not finding fstream.h

Subject: Re: [htdig] configure under BSD not finding fstream.h
From: Gilles Detillieux (
Date: Tue Sep 12 2000 - 14:29:36 PDT

According to Brett Rabideau:
> (2) From advice from part of the archives, I tried setting:
> setenv CFLAGS="-O2 -I/usr/local/include/g++"
> setenv CXXFLAGS="O2 -I/usr/local/include/g++"
> When I ran ./configure, I received:
> checking whether the C++ compiler (c++ O2 -I/usr/local/include/g++= )
> works... no
> configure: error: installation or configuration problem: C++ compiler
> cannot create executables.
> (3) Borrowing further from another example, I tried:
> setenv CFLAGS="-O2 -I/usr/local/include/g++"
> setenv CXXFLAGS="O2 -I/usr/local/include/g++"
> ./configure --prefix=/usr/local
> and once again got to:
> checking for fstream.h... no
> configure: error: To compile ht://Dig, you will need a C++ library. Try
> installing libstdc++.

The correct syntax for setenv is as follows:

  setenv CFLAGS "-O2 -I/usr/local/include/g++"
  setenv CXXFLAGS "-O2 -I/usr/local/include/g++"

Note there's no "=" sign between the name and value, and note also that
both option strings need the "-" before the "O2" option. The setenv
command only works if your shell is csh or tcsh. If you're running sh,
bash, ksh, or some other Bourne-shell workalike, the commands would be:

  CFLAGS="-O2 -I/usr/local/include/g++"
  CXXFLAGS="-O2 -I/usr/local/include/g++"

Gilles R. Detillieux              E-mail: <>
Spinal Cord Research Centre       WWW:
Dept. Physiology, U. of Manitoba  Phone:  (204)789-3766
Winnipeg, MB  R3E 3J7  (Canada)   Fax:    (204)789-3930

------------------------------------ To unsubscribe from the htdig mailing list, send a message to You will receive a message to confirm this. List archives: <> FAQ: <>

This archive was generated by hypermail 2b28 : Tue Sep 12 2000 - 14:31:46 PDT