Version: 3.0.0 (using KDE KDE 3.2.0) Installed from: Slackware Packages Compiler: gcc version 3.2.3 OS: Linux (i686) release 2.4.20 When you modify some options of the project through the menu Project/Project Options, Kdevelop asks you: Rerun configure now ? You click yes and in the messages window you get: cd "/home/gt/mizio_pthread" && LDFLAGS="-lkio -lkdeui -lkdecore -lqt -dl" CPPFLAGS="-g" CXX=-g "/home/gt/mizio_pthread/configure" *checking build system type... i686-pc-linux-gnu *checking host system type... i686-pc-linux-gnu *checking target system type... i686-pc-linux-gnu *checking for a BSD-compatible install... /usr/bin/ginstall -c *checking for -p flag to install... yes *checking whether build environment is sane... yes *checking for gawk... gawk *checking whether make sets $(MAKE)... yes *checking for style of include used by make... GNU *checking for gcc... gcc *checking for C compiler default output... *configure: error: C compiler cannot create executables *See `config.log' for more details. **** Exited with status: 77 *** That's all. This is a bug that occured also in 2.x releases.
Sorry, I forgot to mention that my gcc compiler works !
"When you modify some options.." It might help if you stated exactly what you changed.
This is a "user bug" :) Please read the config.log file for more details :)
That is what I changed: The project version in the General options and I removed -lpthread from the Linker flags (LDFLAGS) field in the Configure Options.
Are you working from an existing template? If you do, what template is that?
Yes, I used the template C++/KDE/Simple KDE Application
I have no -lpthread in that template.. Was it really there by default?
I added -lpthread because my app needed it ! Then I switched to QThread and I removed -lpthread from the project configure options !
OK, I think I see what is happening.. (check the config.log file, like Amilcar suggests) if you add linker flags to that box in configure options, those flags will be applied to the test builds made during the configure tests. For this to work, but linker will need to be told what those flags mean. Most likely it's not finding one of the flags you pass it. For instance, if I add "-lkio" to the LDFLAGS box of a "simple kde program" it fails with the following in config.log: configure:2576: gcc -lkio conftest.c >&5 /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.2/../../../../i686-pc-linux-gnu/bin/ld: cannot find -lkio collect2: ld returned 1 exit status If I on the other hand add "-lkio -L/opt/kde/lib" then the configure test works as expected. A better way to add flags and linker paths is in the automake manager. Unless I'm mistaken, those flags are only applied to the related and not the configure test. (which is better, unless of course you have a configure test that actually need extra flags.) I agree with Amilcar, user error. Closing.
"...those flags are only applied to the related TARGET and not..." is what I meant to say.