[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
autoconf: AC_PROG_CXX cygwin vs Solaris
From: |
Roland Roberts |
Subject: |
autoconf: AC_PROG_CXX cygwin vs Solaris |
Date: |
Thu, 09 Sep 2004 13:58:56 -0400 |
User-agent: |
Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux) |
-----BEGIN PGP SIGNED MESSAGE-----
I'm trying to automatically detect the "correct" C++ compiler for our
project. We are using Oracle and it's OCCI lib which requires that I
use the "vendor" C++ compiler. For Solaris, it is named CC (yep,
uppercase). Some of our developers are using cygwin and are not
interested in the Oracle pieces, and do their testing with g++.
The problem is that if I use
AC_PROG_CXX([CC c++ g++])
Then on cygwin I pick up /usr/bin/CC which is really /usr/bin/cc (gcc)
since things are not being handled as case-sensitive.
But then at link time, I am getting errors, like this one:
nnls.o(.text+0xa93): In function
`_Z41__static_initialization_and_destruction_0ii':
/usr/include/c++/3.3.3/iostream:77: undefined reference to
`std::ios_base::Init::Init[in-charge]()'
nnls.o(.text+0xa87):/usr/include/c++/3.3.3/iostream:77: undefined reference
to `std::ios_base::Init::~Init [in-charge]()'
Is there a way to reject a selected C++ compiler and move on to the
next one in the list?
thanks,
roland
- --
PGP Key ID: 66 BC 3B CD
Roland B. Roberts, PhD RL Enterprises
roland@rlenter.com 6818 Madeline Court
roland@astrofoto.org Brooklyn, NY 11220
-----BEGIN PGP SIGNATURE-----
Version: 2.6.3ia
Charset: noconv
Comment: Processed by Mailcrypt 3.5.4, an Emacs/PGP interface
iQCVAwUBQUCZ3uoW38lmvDvNAQG4rwP/akhJcdbnXa+2nXLc3uYFkdyo9XiEHtaC
5hXVArJoBOD7vtV8xhe0GiPgprR93B+RSGyVRGEsPMrGto7c8JoXFn29GTuSUJip
doVhxgDm51w4QIefslCDTX1zlqv9t0asIkMbxi4oQ8/rg3mWneywL+Z67J7bIIOx
sJa5ftp7e4Q=
=oZNZ
-----END PGP SIGNATURE-----
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- autoconf: AC_PROG_CXX cygwin vs Solaris,
Roland Roberts <=