kdevelop: Cannot compile simple app, Exited with status 77
ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
kdevelop: Cannot compile simple app, Exited with status 77
Hello
I've just recently switched from XP using Visual Studio '05 to trying to get some basic codes working with kdevelop. When I do try to run the premade 'hello world' script, it gives me an error that tells me to check the following config.log. I really just wanted to test some of my basic console apps (hello world using printf() and stuff).
Am I doing something very noobly wrong? I used synaptic to get kdevelop, automake and qt3 designer. I googled and tried what I found, but it doesn't change the error any
Sorry if this is absurdly long. Every other post I found with this issue had someone ask what the config.log said, so here goes:
Quote:
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by configure, which was
generated by GNU Autoconf 2.61. Invocation command line was
configure:2138: checking build system type
configure:2156: result: i686-pc-linux-gnulibc1
configure:2178: checking host system type
configure:2193: result: i686-pc-linux-gnulibc1
configure:2215: checking target system type
configure:2230: result: i686-pc-linux-gnulibc1
configure:2292: checking for a BSD-compatible install
configure:2348: result: /usr/bin/install -c
configure:2363: checking for -p flag to install
configure:2376: result: yes
configure:2387: checking whether build environment is sane
configure:2430: result: yes
configure:2445: checking for a thread-safe mkdir -p
configure:2484: result: /bin/mkdir -p
configure:2497: checking for gawk
configure:2513: found /usr/bin/gawk
configure:2524: result: gawk
configure:2535: checking whether make sets $(MAKE)
configure:2556: result: yes
configure:2762: checking for kde-config
configure:2824: result: /usr/bin/kde-config
configure:2919: checking where to install
configure:2923: result: /usr (as returned by kde-config)
configure:2978: checking for style of include used by make
configure:3006: result: GNU
configure:3153: checking for gcc
configure:3169: found /usr/bin/gcc
configure:3180: result: gcc
configure:3418: checking for C compiler version
configure:3425: gcc --version >&5
gcc (GCC) 4.2.3 (Ubuntu 4.2.3-2ubuntu7)
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:3428: $? = 0
configure:3435: gcc -v >&5
Using built-in specs.
Target: i486-linux-gnu
Configured with: ../src/configure -v --enable-languages=c,c++,fortran,objc,obj-c++,treelang --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --with-gxx-include-dir=/usr/include/c++/4.2 --program-suffix=-4.2 --enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc --enable-mpfr --enable-targets=all --enable-checking=release --build=i486-linux-gnu --host=i486-linux-gnu --target=i486-linux-gnu
Thread model: posix
gcc version 4.2.3 (Ubuntu 4.2.3-2ubuntu7)
configure:3438: $? = 0
configure:3445: gcc -V >&5
gcc: '-V' option must have argument
configure:3448: $? = 1
configure:3471: checking for C compiler default output file name
configure:3498: gcc conftest.c >&5
/usr/bin/ld: crt1.o: No such file: No such file or directory
collect2: ld returned 1 exit status
configure:3501: $? = 1
configure:3539: result:
configure: failed program was:
| /* confdefs.h. */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "test1"
| #define VERSION "0.1"
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:3546: error: C compiler cannot create executables
See `config.log' for more details.
Yarr! She works... kinda. This got past the initial issue only to ask for g++, then some other 5-6 libraries one after the other lol. In any event, I go Hello World to finally come up.
If you are just trying to test some simple C code or C++ code, then you do not need to use a full IDE but can use the C compiler "gcc" and the C++ compiler "g++". http://gcc.gnu.org/
Then you would type your file in an editor (vi, kate, gedit, etc) and save it as a .c file or a .cpp file, and use the appropriate compiler to build it into an object file. You can run it from the command line, or you can build more object files and link them together.
Since you solved your problem, you can just use the IDE instead.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.