LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Ubuntu (https://www.linuxquestions.org/questions/ubuntu-63/)
-   -   Problem Compiling (https://www.linuxquestions.org/questions/ubuntu-63/problem-compiling-426400/)

patisawsome 03-19-2006 06:59 PM

Problem Compiling
 
I just installed Ubuntu 5.10 onto my computer and I am having troubles with compiling programs. I added extra repositories and installed a tool chain package I found and the newest version of GCC and and G++. When running "./configure" I get the following error message.
Code:

checking for C++ compiler default output... configure: error: C++ compiler cannot create executables
What does this mean and how would I go about fixing it? Thankyou for any help in advance.

ntubski 03-19-2006 09:31 PM

There should be more detailed error messages in config.log Post the end of it here.

Also you are not the first one with this probem: http://www.google.ca/search?q=%22C%2...te+executables

patisawsome 03-20-2006 03:35 PM

I wasnt quite sure of how much of the "system.log" to post but here is the better part of the end.

Code:

## ----------------- ##
## Output variables. ##
## ----------------- ##

ACLOCAL='${SHELL} /home/patrick/fluxbg-0.7/missing --run aclocal'
AMDEPBACKSLASH='\'
AMDEP_FALSE='#'
AMDEP_TRUE=''
AMTAR='${SHELL} /home/patrick/fluxbg-0.7/missing --run tar'
AUTOCONF='${SHELL} /home/patrick/fluxbg-0.7/missing --run autoconf'
AUTOHEADER='${SHELL} /home/patrick/fluxbg-0.7/missing --run autoheader'
AUTOMAKE='${SHELL} /home/patrick/fluxbg-0.7/missing --run automake'
AWK='gawk'
CC=''
CCDEPMODE=''
CFLAGS=''
CPPFLAGS=''
CXX='g++'
CXXDEPMODE=''
CXXFLAGS=''
DEFS=''
DEPDIR='.deps'
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EXEEXT=''
GTKMM_CFLAGS=''
GTKMM_LIBS=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='${SHELL} $(install_sh) -c -s'
LDFLAGS=''
LIBOBJS=''
LIBS=''
LTLIBOBJS=''
MAKEINFO='${SHELL} /home/patrick/fluxbg-0.7/missing --run makeinfo'
OBJEXT='o'
PACKAGE='fluxbg'
PACKAGE_BUGREPORT=''
PACKAGE_NAME=''
PACKAGE_STRING=''
PACKAGE_TARNAME=''
PACKAGE_VERSION=''
PATH_SEPARATOR=':'
PKG_CONFIG=''
SET_MAKE=''
SHELL='/bin/sh'
VERSION='0.5.2'
ac_ct_CC=''
ac_ct_CXX='g++'
am__include=''
am__quote=''
bindir='${exec_prefix}/bin'
build_alias=''
datadir='${prefix}/share'
exec_prefix='NONE'
host_alias=''
includedir='${prefix}/include'
infodir='${prefix}/info'
install_sh='/home/patrick/fluxbg-0.7/install-sh'
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 "fluxbg"
#define PACKAGE_BUGREPORT ""
#define PACKAGE_NAME ""
#define PACKAGE_STRING ""
#define PACKAGE_TARNAME ""
#define PACKAGE_VERSION ""
#define VERSION "0.5.2"

configure: exit 77

I hope this is what your looking for.

ntubski 03-20-2006 04:44 PM

Hmm, I'm not seeing any error messages in there. Can you compile a basic helloword.cpp program? What are the permissions on the directory you're compiling in? Are you sure you have libstdc++?


All times are GMT -5. The time now is 01:37 AM.