Compilazione c++
Inviato: ven 16 mag 2008, 15:09
Buongiorno a tutti, ho un problema sulla compilazione di un programma in c++.
Se lancio la compilazione, il configure mi da questo errore:
e nel file config.log ho questo testo:
Premettendo che il programma è un semplice main vuoto, e quindi privo di errori , cosa potrebbe esserci che non va?
Grazie per l'aiuto
Se lancio la compilazione, il configure mi da questo errore:
Codice: Seleziona tutto
checking for a BSD-compatible install... /usr/bin/ginstall -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for C++ compiler default output file name...
configure: error: C++ compiler cannot create executables
See `config.log' for more details.
*** Uscito con stato: 77 ***
Codice: Seleziona tutto
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by configure, which was
generated by GNU Autoconf 2.61. Invocation command line was
$ /home/fabio/Connect/configure
## --------- ##
## Platform. ##
## --------- ##
hostname = Grifone
uname -m = i686
uname -r = 2.6.21.5-smp
uname -s = Linux
uname -v = #1 SMP Thu May 1 16:24:42 CEST 2008
/usr/bin/uname -p = Mobile AMD Sempron(tm) Processor 3400+
/bin/uname -X = unknown
/bin/arch = i686
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo = unknown
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown
PATH: /usr/local/bin
PATH: /usr/bin
PATH: /bin
PATH: /usr/games
PATH: /usr/lib/java/bin
PATH: /usr/lib/java/jre/bin
PATH: /usr/lib/qt/bin
PATH: /usr/share/texmf/bin
PATH: .
## ----------- ##
## Core tests. ##
## ----------- ##
configure:1967: checking for a BSD-compatible install
configure:2023: result: /usr/bin/ginstall -c
configure:2034: checking whether build environment is sane
configure:2077: result: yes
configure:2142: checking for gawk
configure:2158: found /usr/bin/gawk
configure:2169: result: gawk
configure:2180: checking whether make sets $(MAKE)
configure:2201: result: yes
configure:2508: checking for C++ compiler version
configure:2515: i586-mingw32msvc-c++ --version >&5
/home/fabio/Connect/configure: line 2516: i586-mingw32msvc-c++: command not found
configure:2518: $? = 127
configure:2525: i586-mingw32msvc-c++ -v >&5
/home/fabio/Connect/configure: line 2526: i586-mingw32msvc-c++: command not found
configure:2528: $? = 127
configure:2535: i586-mingw32msvc-c++ -V >&5
/home/fabio/Connect/configure: line 2536: i586-mingw32msvc-c++: command not found
configure:2538: $? = 127
configure:2561: checking for C++ compiler default output file name
configure:2588: i586-mingw32msvc-c++ conftest.cpp >&5
/home/fabio/Connect/configure: line 2589: i586-mingw32msvc-c++: command not found
configure:2591: $? = 127
configure:2629: result:
configure: failed program was:
| /* confdefs.h. */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "connect"
| #define VERSION "0.1"
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:2636: error: C++ compiler cannot create executables
See `config.log' for more details.
## ---------------- ##
## Cache variables. ##
## ---------------- ##
ac_cv_env_CCC_set=
ac_cv_env_CCC_value=
ac_cv_env_CC_set=set
ac_cv_env_CC_value=i586-mingw32msvc-c
ac_cv_env_CFLAGS_set=
ac_cv_env_CFLAGS_value=
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_CXXCPP_set=
ac_cv_env_CXXCPP_value=
ac_cv_env_CXXFLAGS_set=
ac_cv_env_CXXFLAGS_value=
ac_cv_env_CXX_set=set
ac_cv_env_CXX_value=i586-mingw32msvc-c++
ac_cv_env_F77_set=
ac_cv_env_F77_value=
ac_cv_env_FFLAGS_set=
ac_cv_env_FFLAGS_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_path_install='/usr/bin/ginstall -c'
ac_cv_prog_AWK=gawk
ac_cv_prog_make_make_set=yes
## ----------------- ##
## Output variables. ##
## ----------------- ##
ACLOCAL='${SHELL} /home/fabio/Connect/missing --run aclocal-1.9'
AMDEPBACKSLASH=''
AMDEP_FALSE=''
AMDEP_TRUE=''
AMTAR='${SHELL} /home/fabio/Connect/missing --run tar'
AR=''
AUTOCONF='${SHELL} /home/fabio/Connect/missing --run autoconf'
AUTOHEADER='${SHELL} /home/fabio/Connect/missing --run autoheader'
AUTOMAKE='${SHELL} /home/fabio/Connect/missing --run automake-1.9'
AWK='gawk'
CC='i586-mingw32msvc-c'
CCDEPMODE=''
CFLAGS=''
CPP=''
CPPFLAGS=''
CXX='i586-mingw32msvc-c++'
CXXCPP=''
CXXDEPMODE=''
CXXFLAGS=''
CYGPATH_W='echo'
DEFS=''
DEPDIR=''
ECHO='echo'
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
EXEEXT=''
F77=''
FFLAGS=''
GREP=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='${SHELL} $(install_sh) -c -s'
LDFLAGS=''
LIBOBJS=''
LIBS=''
LIBTOOL=''
LN_S=''
LTLIBOBJS=''
MAKEINFO='${SHELL} /home/fabio/Connect/missing --run makeinfo'
OBJEXT=''
PACKAGE='connect'
PACKAGE_BUGREPORT=''
PACKAGE_NAME=''
PACKAGE_STRING=''
PACKAGE_TARNAME=''
PACKAGE_VERSION=''
PATH_SEPARATOR=':'
RANLIB=''
SED=''
SET_MAKE=''
SHELL='/bin/sh'
STRIP=''
VERSION='0.1'
ac_ct_CC=''
ac_ct_CXX=''
ac_ct_F77=''
am__fastdepCC_FALSE=''
am__fastdepCC_TRUE=''
am__fastdepCXX_FALSE=''
am__fastdepCXX_TRUE=''
am__include=''
am__leading_dot='.'
am__quote=''
am__tar='${AMTAR} chof - "$$tardir"'
am__untar='${AMTAR} xf -'
bindir='${exec_prefix}/bin'
build=''
build_alias=''
build_cpu=''
build_os=''
build_vendor=''
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE}'
dvidir='${docdir}'
exec_prefix='NONE'
host=''
host_alias=''
host_cpu=''
host_os=''
host_vendor=''
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
install_sh='/home/fabio/Connect/install-sh'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
mkdir_p='mkdir -p --'
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='NONE'
program_transform_name='s,x,x,'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''
## ----------- ##
## confdefs.h. ##
## ----------- ##
#define PACKAGE_NAME ""
#define PACKAGE_TARNAME ""
#define PACKAGE_VERSION ""
#define PACKAGE_STRING ""
#define PACKAGE_BUGREPORT ""
#define PACKAGE "connect"
#define VERSION "0.1"
configure: exit 77
Grazie per l'aiuto