Bug 107433 - C++ projects make the configure with a bug
Summary: C++ projects make the configure with a bug
Status: RESOLVED DUPLICATE of bug 79086
Alias: None
Product: kdevelop
Classification: Applications
Component: general (show other bugs)
Version: 3.2.1
Platform: Mandrake RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: kdevelop-bugs-null
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-06-15 01:53 UTC by Adrian Ban
Modified: 2005-06-15 14:59 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Adrian Ban 2005-06-15 01:53:26 UTC
Version:           3.2.1 (using KDE KDE 3.3.0KDE 1.2)
Installed from:    Mandrake RPMsMandrake RPMs
Compiler:          3.4.3 
OS:                Linux

After i create a project in C++ and make a litle program, build the project. Problem is that the ./configure puts a ".C" extension to the final executable. This is an exemple:

checking for BSD-compatible nm... /usr/bin/nm -B
checking for a sed that does not truncate output... /bin/sed
checking whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
checking for object suffix... o
checking for executable suffix... .C
checking command to parse /usr/bin/nm -B output... ok
checking for dlfcn.h... yes
checking for ranlib... ranlib

This ./configure file is execute after Run automake & friends
After that i compare a ./configure file from a C project with this C++ ./configure project file, i found that the variable $ac_ext in tha C project configure file is only "$ac_ext=c", but in the configure from the C++ project file is some times "$ac_ext=c", some times "$ac_ext=C". After i change all "$ac_ext=C" into "$ac_ext=c" everything is compiling ok, without ".C" extension. This is a modified configure from a C++ project:

checking for BSD-compatible nm... /usr/bin/nm -B
checking for a sed that does not truncate output... /bin/sed
checking whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
checking for object suffix... o
checking for executable suffix... no
checking command to parse /usr/bin/nm -B output... ok
checking for dlfcn.h... yes
checking for ranlib... ranlib

If i try to run/debug the program, Kdevelop tells me that it cann't find the executable ./my_exec, becouse the name of file is ./my_exec.C
Comment 1 Jens Dagerbo 2005-06-15 14:59:58 UTC
Old Mandrake problem. I believe they've solved it since. 

*** This bug has been marked as a duplicate of 79086 ***