gabriele
June 15th, 2005, 02:34 PM
i've tried to compile program with gpp version 2.24-1 but i've this answer at the and of compiling process :
checking for g++... no
checking for c++... no
checking for gpp... gpp
checking for C++ compiler default output... b.out
checking whether the C++ compiler works... configure: error: cannot run C++ compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details.
and my config.log is :
It was created by configure, which was
generated by GNU Autoconf 2.57. Invocation command line was
$ ./configure
## --------- ##
## Platform. ##
## --------- ##
hostname = platone
uname -m = i686
uname -r = 2.6.10-5-386
uname -s = Linux
uname -v = #1 Tue Apr 5 12:12:40 UTC 2005
/usr/bin/uname -p = unknown
/bin/uname -X = unknown
/bin/arch = i686
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
hostinfo = unknown
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown
PATH: /usr/local/sbin
PATH: /usr/local/bin
PATH: /usr/sbin
PATH: /usr/bin
PATH: /sbin
PATH: /bin
PATH: /usr/X11R6/bin
PATH: /usr/java/jre1.5.0_02/bin
## ----------- ##
## Core tests. ##
## ----------- ##
configure:1399: checking for g++
configure:1428: result: no
configure:1399: checking for c++
configure:1428: result: no
configure:1399: checking for gpp
configure:1415: found /usr/bin/gpp
configure:1425: result: gpp
configure:1441: checking for C++ compiler version
configure:1444: gpp --version </dev/null >&5
GPP 2.24
Copyright (C) 1996-2001 Denis Auroux
Copyright (C) 2003, 2004 Tristan Miller
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
configure:1447: $? = 0
configure:1449: gpp -v </dev/null >&5
Usage : gpp [-{o|O} outfile] [-I/include/path] [-Dname=val ...] [-z] [-x] [-m]
[-n] [-C | -T | -H | -X | -P | -U ... [-M ...]] [+c<n> str1 str2]
[+s<n> str1 str2 c] [long options] [infile]
default: #define x y macro(arg,...)
-C : maximum cpp compatibility (includes -n, +c, +s, ...)
-T : TeX-like \define{x}{y} \macro{arg}{...}
-H : HTML-like <#define x|y> <#macro arg|...>
-X : XHTML-like <#define x|y/> <#macro arg|.../>
-P : prolog compatible cpp-like mode
-U : user-defined syntax (specified in 9 following args; see manual)
-M : user-defined syntax for meta-macros (specified in 7 following args)
-o : output to outfile
-O : output to outfile and stdout
-z : line terminator is CR-LF (MS-DOS style)
-x : enable #exec built-in macro
-m : enable automatic mode switching upon including .h/.c files
-n : send LF characters serving as macro terminators to output
+c : use next 2 args as comment start and comment end sequences
+s : use next 3 args as string start, end and quote character
Long options:
--include file : process file before infile
--nostdinc : don't search standard directories for files to include
--nocurinc : don't search the current directory for files to include
--curdirinclast : search the current directory last
--warninglevel n : set warning level
--includemarker formatstring : keep track of #include directives in output
--version : display version information and exit
-h, --help : display this message and exit
configure:1452: $? = 1
configure:1454: gpp -V </dev/null >&5
Usage : gpp [-{o|O} outfile] [-I/include/path] [-Dname=val ...] [-z] [-x] [-m]
[-n] [-C | -T | -H | -X | -P | -U ... [-M ...]] [+c<n> str1 str2]
[+s<n> str1 str2 c] [long options] [infile]
default: #define x y macro(arg,...)
-C : maximum cpp compatibility (includes -n, +c, +s, ...)
-T : TeX-like \define{x}{y} \macro{arg}{...}
-H : HTML-like <#define x|y> <#macro arg|...>
-X : XHTML-like <#define x|y/> <#macro arg|.../>
-P : prolog compatible cpp-like mode
-U : user-defined syntax (specified in 9 following args; see manual)
-M : user-defined syntax for meta-macros (specified in 7 following args)
-o : output to outfile
-O : output to outfile and stdout
-z : line terminator is CR-LF (MS-DOS style)
-x : enable #exec built-in macro
-m : enable automatic mode switching upon including .h/.c files
-n : send LF characters serving as macro terminators to output
+c : use next 2 args as comment start and comment end sequences
+s : use next 3 args as string start, end and quote character
Long options:
--include file : process file before infile
--nostdinc : don't search standard directories for files to include
--nocurinc : don't search the current directory for files to include
--curdirinclast : search the current directory last
--warninglevel n : set warning level
--includemarker formatstring : keep track of #include directives in output
--version : display version information and exit
-h, --help : display this message and exit
configure:1457: $? = 1
configure:1481: checking for C++ compiler default output
configure:1484: gpp -O3 -O3 conftest.cc >&5
2/* confdefs.h. */
/* end confdefs.h. */
int
main ()
{
;
return 0;
}
configure:1487: $? = 0
configure:1533: result: b.out
configure:1538: checking whether the C++ compiler works
configure:1544: ./b.out
./configure: line 1545: ./b.out: No such file or directory
configure:1547: $? = 127
configure:1556: error: cannot run C++ compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details.
## ---------------- ##
## Cache variables. ##
## ---------------- ##
ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=
ac_cv_env_CFLAGS_value=
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_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=
ac_cv_env_CXX_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_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_exeext=
ac_cv_prog_ac_ct_CXX=gpp
## ----------------- ##
## Output variables. ##
## ----------------- ##
CC=''
CFLAGS=''
CPPFLAGS='-O3'
CXX='gpp'
CXXCPP=''
CXXFLAGS='-O3'
DEFS=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EXEEXT=''
INSTALL_DATA=''
INSTALL_PROGRAM=''
INSTALL_SCRIPT=''
LDFLAGS=''
LIBOBJS=''
LIBS=''
LIBVERSION=''
LTLIBOBJS=''
MAKEDEPEND=''
OBJEXT=''
PACKAGE_BUGREPORT=''
PACKAGE_NAME=''
PACKAGE_STRING=''
PACKAGE_TARNAME=''
PACKAGE_VERSION=''
PATH_SEPARATOR=':'
SHELL='/bin/sh'
VERSION=''
X_CFLAGS=''
X_EXTRA_LIBS=''
X_LIBS=''
X_PRE_LIBS=''
ac_ct_CC=''
ac_ct_CXX='gpp'
armcc=''
armcxx=''
bindir='${exec_prefix}/bin'
build_alias=''
datadir='${prefix}/share'
exec_prefix='NONE'
host_alias=''
includedir='${prefix}/include'
infodir='${prefix}/info'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localstatedir='${prefix}/var'
mandir='${prefix}/man'
oldincludedir='/usr/include'
prefix='NONE'
program_transform_name='s,x,x,'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''
## ----------- ##
## confdefs.h. ##
## ----------- ##
#define PACKAGE_BUGREPORT ""
#define PACKAGE_NAME ""
#define PACKAGE_STRING ""
#define PACKAGE_TARNAME ""
#define PACKAGE_VERSION ""
configure: exit 1
why ???
thank's for all
g.
checking for g++... no
checking for c++... no
checking for gpp... gpp
checking for C++ compiler default output... b.out
checking whether the C++ compiler works... configure: error: cannot run C++ compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details.
and my config.log is :
It was created by configure, which was
generated by GNU Autoconf 2.57. Invocation command line was
$ ./configure
## --------- ##
## Platform. ##
## --------- ##
hostname = platone
uname -m = i686
uname -r = 2.6.10-5-386
uname -s = Linux
uname -v = #1 Tue Apr 5 12:12:40 UTC 2005
/usr/bin/uname -p = unknown
/bin/uname -X = unknown
/bin/arch = i686
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
hostinfo = unknown
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown
PATH: /usr/local/sbin
PATH: /usr/local/bin
PATH: /usr/sbin
PATH: /usr/bin
PATH: /sbin
PATH: /bin
PATH: /usr/X11R6/bin
PATH: /usr/java/jre1.5.0_02/bin
## ----------- ##
## Core tests. ##
## ----------- ##
configure:1399: checking for g++
configure:1428: result: no
configure:1399: checking for c++
configure:1428: result: no
configure:1399: checking for gpp
configure:1415: found /usr/bin/gpp
configure:1425: result: gpp
configure:1441: checking for C++ compiler version
configure:1444: gpp --version </dev/null >&5
GPP 2.24
Copyright (C) 1996-2001 Denis Auroux
Copyright (C) 2003, 2004 Tristan Miller
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
configure:1447: $? = 0
configure:1449: gpp -v </dev/null >&5
Usage : gpp [-{o|O} outfile] [-I/include/path] [-Dname=val ...] [-z] [-x] [-m]
[-n] [-C | -T | -H | -X | -P | -U ... [-M ...]] [+c<n> str1 str2]
[+s<n> str1 str2 c] [long options] [infile]
default: #define x y macro(arg,...)
-C : maximum cpp compatibility (includes -n, +c, +s, ...)
-T : TeX-like \define{x}{y} \macro{arg}{...}
-H : HTML-like <#define x|y> <#macro arg|...>
-X : XHTML-like <#define x|y/> <#macro arg|.../>
-P : prolog compatible cpp-like mode
-U : user-defined syntax (specified in 9 following args; see manual)
-M : user-defined syntax for meta-macros (specified in 7 following args)
-o : output to outfile
-O : output to outfile and stdout
-z : line terminator is CR-LF (MS-DOS style)
-x : enable #exec built-in macro
-m : enable automatic mode switching upon including .h/.c files
-n : send LF characters serving as macro terminators to output
+c : use next 2 args as comment start and comment end sequences
+s : use next 3 args as string start, end and quote character
Long options:
--include file : process file before infile
--nostdinc : don't search standard directories for files to include
--nocurinc : don't search the current directory for files to include
--curdirinclast : search the current directory last
--warninglevel n : set warning level
--includemarker formatstring : keep track of #include directives in output
--version : display version information and exit
-h, --help : display this message and exit
configure:1452: $? = 1
configure:1454: gpp -V </dev/null >&5
Usage : gpp [-{o|O} outfile] [-I/include/path] [-Dname=val ...] [-z] [-x] [-m]
[-n] [-C | -T | -H | -X | -P | -U ... [-M ...]] [+c<n> str1 str2]
[+s<n> str1 str2 c] [long options] [infile]
default: #define x y macro(arg,...)
-C : maximum cpp compatibility (includes -n, +c, +s, ...)
-T : TeX-like \define{x}{y} \macro{arg}{...}
-H : HTML-like <#define x|y> <#macro arg|...>
-X : XHTML-like <#define x|y/> <#macro arg|.../>
-P : prolog compatible cpp-like mode
-U : user-defined syntax (specified in 9 following args; see manual)
-M : user-defined syntax for meta-macros (specified in 7 following args)
-o : output to outfile
-O : output to outfile and stdout
-z : line terminator is CR-LF (MS-DOS style)
-x : enable #exec built-in macro
-m : enable automatic mode switching upon including .h/.c files
-n : send LF characters serving as macro terminators to output
+c : use next 2 args as comment start and comment end sequences
+s : use next 3 args as string start, end and quote character
Long options:
--include file : process file before infile
--nostdinc : don't search standard directories for files to include
--nocurinc : don't search the current directory for files to include
--curdirinclast : search the current directory last
--warninglevel n : set warning level
--includemarker formatstring : keep track of #include directives in output
--version : display version information and exit
-h, --help : display this message and exit
configure:1457: $? = 1
configure:1481: checking for C++ compiler default output
configure:1484: gpp -O3 -O3 conftest.cc >&5
2/* confdefs.h. */
/* end confdefs.h. */
int
main ()
{
;
return 0;
}
configure:1487: $? = 0
configure:1533: result: b.out
configure:1538: checking whether the C++ compiler works
configure:1544: ./b.out
./configure: line 1545: ./b.out: No such file or directory
configure:1547: $? = 127
configure:1556: error: cannot run C++ compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details.
## ---------------- ##
## Cache variables. ##
## ---------------- ##
ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=
ac_cv_env_CFLAGS_value=
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_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=
ac_cv_env_CXX_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_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_exeext=
ac_cv_prog_ac_ct_CXX=gpp
## ----------------- ##
## Output variables. ##
## ----------------- ##
CC=''
CFLAGS=''
CPPFLAGS='-O3'
CXX='gpp'
CXXCPP=''
CXXFLAGS='-O3'
DEFS=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EXEEXT=''
INSTALL_DATA=''
INSTALL_PROGRAM=''
INSTALL_SCRIPT=''
LDFLAGS=''
LIBOBJS=''
LIBS=''
LIBVERSION=''
LTLIBOBJS=''
MAKEDEPEND=''
OBJEXT=''
PACKAGE_BUGREPORT=''
PACKAGE_NAME=''
PACKAGE_STRING=''
PACKAGE_TARNAME=''
PACKAGE_VERSION=''
PATH_SEPARATOR=':'
SHELL='/bin/sh'
VERSION=''
X_CFLAGS=''
X_EXTRA_LIBS=''
X_LIBS=''
X_PRE_LIBS=''
ac_ct_CC=''
ac_ct_CXX='gpp'
armcc=''
armcxx=''
bindir='${exec_prefix}/bin'
build_alias=''
datadir='${prefix}/share'
exec_prefix='NONE'
host_alias=''
includedir='${prefix}/include'
infodir='${prefix}/info'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localstatedir='${prefix}/var'
mandir='${prefix}/man'
oldincludedir='/usr/include'
prefix='NONE'
program_transform_name='s,x,x,'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''
## ----------- ##
## confdefs.h. ##
## ----------- ##
#define PACKAGE_BUGREPORT ""
#define PACKAGE_NAME ""
#define PACKAGE_STRING ""
#define PACKAGE_TARNAME ""
#define PACKAGE_VERSION ""
configure: exit 1
why ???
thank's for all
g.