LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 10-26-2009, 01:18 PM   #1
fratermine
LQ Newbie
 
Registered: Oct 2009
Location: Palermo, Italy
Distribution: Slackware 12.2
Posts: 3

Rep: Reputation: 0
Problem when compile with Kdevelop


Hello everybody
I am trying to compile a simple c++ program with Kdevelop using hashlib++
and the compiler return this error
configure: error: in `/home/Projects/esempio':
configure: error: C++ compiler cannot create executables

I report my config.log

hostname = localhost
uname -m = i686
uname -r = 2.6.27.7-smp
uname -s = Linux
uname -v = #2 SMP Thu Nov 20 22:32:43 CST 2008

/usr/bin/uname -p = Intel(R) Pentium(R) M processor 1.70GHz
/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/sbin
PATH: /usr/sbin
PATH: /sbin
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


## ----------- ##
## Core tests. ##
## ----------- ##

configure:2074: checking for a BSD-compatible install
configure:2142: result: /usr/bin/ginstall -c
configure:2153: checking whether build environment is sane
configure:2196: result: yes
configure:2221: checking for a thread-safe mkdir -p
configure:2260: result: /usr/bin/mkdir -p
configure:2273: checking for gawk
configure:2289: found /usr/bin/gawk
configure:2300: result: gawk
configure:2311: checking whether make sets $(MAKE)
configure:2333: result: yes
configure:2582: checking for g++
configure:2598: found /usr/bin/g++
configure:2609: result: g++
configure:2636: checking for C++ compiler version
configure:2644: g++ --version >&5
g++ (GCC) 4.2.4
Copyright (C) 2007 Free Software Foundation, Inc.
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:2648: $? = 0
configure:2655: g++ -v >&5
Reading specs from /usr/lib/gcc/i486-slackware-linux/4.2.4/specs
Target: i486-slackware-linux
Configured with: ../gcc-4.2.4/configure --prefix=/usr --enable-shared --enable-languages=ada,c,c++,fortran,java,objc --enable-threads=posix --enable-__cxa_atexit --disable-checking --with-gnu-ld --verbose --with-arch=i486 --target=i486-slackware-linux --host=i486-slackware-linux
Thread model: posix
gcc version 4.2.4
configure:2659: $? = 0
configure:2666: g++ -V >&5
g++: '-V' option must have argument
configure:2670: $? = 1
configure:2693: checking for C++ compiler default output file name
configure:2715: g++ -l/home/Projects/esempio/hashlib++_0.3.1/src -L/home/Projects/esempio/hashlib++_0.3.1/src conftest.cpp >&5
/usr/lib/gcc/i486-slackware-linux/4.2.4/../../../../i486-slackware-linux/bin/ld: cannot find -l/home/Projects/esempio/hashlib++::3.1/src
collect2: ld returned 1 exit status
configure:2719: $? = 1
configure:2757: result:
configure: failed program was:
| /* confdefs.h. */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "esempio"
| #define VERSION "0.1"
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:2763: error: in `/home/Projects/esempio':
configure:2766: 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=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=
ac_cv_env_CFLAGS_value=
ac_cv_env_CPPFLAGS_set=set
ac_cv_env_CPPFLAGS_value=-l/home/Projects/esempio/hashlib++_0.3.1/src
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=
ac_cv_env_CXX_value=
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=set
ac_cv_env_LDFLAGS_value=-L/home/Projects/esempio/hashlib++_0.3.1/src
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_path_mkdir=/usr/bin/mkdir
ac_cv_prog_AWK=gawk
ac_cv_prog_ac_ct_CXX=g++
ac_cv_prog_make_make_set=yes

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

ACLOCAL='${SHELL} /home/Projects/esempio/missing --run aclocal-1.10'
AMDEPBACKSLASH=''
AMDEP_FALSE=''
AMDEP_TRUE=''
AMTAR='${SHELL} /home/Projects/esempio/missing --run tar'
AR=''
AUTOCONF='${SHELL} /home/Projects/esempio/missing --run autoconf'
AUTOHEADER='${SHELL} /home/Projects/esempio/missing --run autoheader'
AUTOMAKE='${SHELL} /home/Projects/esempio/missing --run automake-1.10'
AWK='gawk'
CC=''
CCDEPMODE=''
CFLAGS=''
CPP=''
CPPFLAGS='-l/home/Projects/esempio/hashlib++_0.3.1/src'
CXX='g++'
CXXCPP=''
CXXDEPMODE=''
CXXFLAGS=''
CYGPATH_W='echo'
DEFS=''
DEPDIR=''
DSYMUTIL=''
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='$(install_sh) -c -s'
LDFLAGS='-L/home/Projects/esempio/hashlib++_0.3.1/src'
LIBOBJS=''
LIBS=''
LIBTOOL=''
LN_S=''
LTLIBOBJS=''
MAKEINFO='${SHELL} /home/Projects/esempio/missing --run makeinfo'
MKDIR_P='/usr/bin/mkdir -p'
NMEDIT=''
OBJEXT=''
PACKAGE='esempio'
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='g++'
ac_ct_F77=''
am__fastdepCC_FALSE=''
am__fastdepCC_TRUE=''
am__fastdepCXX_FALSE=''
am__fastdepCXX_TRUE=''
am__include=''
am__isrc=''
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='$(SHELL) /home/Projects/esempio/install-sh'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
mkdir_p='/usr/bin/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 "esempio"
#define VERSION "0.1"

configure: exit 77


can someone help me please?
thank you
bye
 
Old 10-26-2009, 01:55 PM   #2
dracuss
Member
 
Registered: May 2006
Location: Chisinau, Moldova
Distribution: Gentoo, Debian sid
Posts: 151

Rep: Reputation: 29
If "high level" tool don't work, use the "low level" ones. open a terminal and write "g++ -o <name of executable> <path to source file>" and see it's output. If it works well, that means that simply put, the path to g++ in kdevelop is wrong .
 
Old 10-27-2009, 05:48 AM   #3
fratermine
LQ Newbie
 
Registered: Oct 2009
Location: Palermo, Italy
Distribution: Slackware 12.2
Posts: 3

Original Poster
Rep: Reputation: 0
Thank you Dracuss for your suggest!!
I used low level tool and it's worked
then I change the project option in kdevelop but now the compiler returns another error that i post below

home/Projects/esempio/hashlib++::3.1/src/: file not recognized: Is a directory
collect2: ld returned 1 exit status
g++ -O0 -g3 /home/Projects/esempio/hashlib++_0.3.1/src/ -o esempio2 esempio2.o -L/home/Projects/esempio2/debug/src
gmake[2]: *** [esempio2] Error 1
gmake[2]: Target `all' not remade because of errors.
gmake[1]: *** [all-recursive] Error 1
gmake: *** [all] Error 2
*** Exit with status: 2 ***


What does it mean??
Thank you
 
Old 10-27-2009, 08:34 AM   #4
dracuss
Member
 
Registered: May 2006
Location: Chisinau, Moldova
Distribution: Gentoo, Debian sid
Posts: 151

Rep: Reputation: 29
Well, I never worked with Kdevelop... And I really don't know how to help you configuring Kdevelop.

Try to look at this error:
Code:
 home/Projects/esempio/hashlib++::3.1/src/: file not recognized: Is a directory
IMHO, you should specify the files you need to compile, not the directory. Or at least try "./src/*"
Also I don't understand this:
Code:
g++ -O0 -g3 /home/Projects/esempio/hashlib++_0.3.1/src/ -o esempio2 esempio2.o -L/home/Projects/esempio2/debug/src
well, I don't know what the "-L" option does, but there should be a blank character between "-L" and "/home/...".

And also I don't understand why Kdevelop uses gmake... That would mean that it uses a Makefile for compiling your work. So if I was you, I would look in it instead of configuring Kdevelop
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
kdevelop 3.5.1 won't compile binarybob0001 Linux - Software 2 11-19-2008 11:09 AM
Kdevelop doesn't compile my c++ program emab Programming 5 08-18-2008 08:07 PM
can't compile kdevelop from source gaddargarson Slackware 5 06-30-2006 06:08 AM
Kdevelop saying I can't compile C++ programs tmchardy Programming 6 03-08-2006 08:45 PM
kdevelop compile problems Phalloides Linux - Software 0 01-22-2005 09:04 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 01:52 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration