Summary: | C compiler cannot create executables | ||
---|---|---|---|
Product: | [Applications] kdevelop | Reporter: | Giuseppe Torelli <torelli> |
Component: | general | Assignee: | KDevelop Developers <kdevelop-devel> |
Status: | RESOLVED NOT A BUG | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | 3.0.0 | ||
Target Milestone: | --- | ||
Platform: | Slackware | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Giuseppe Torelli
2004-02-26 10:43:33 UTC
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. |