Helloworld exited with status 1

Asked by jordan on 2009-09-24

Ok, Im really frustrated. Ive been trying to get this to work for the past 3 days. I need to compile this program in C++ on linux. I did it once before using kdevelop about a year a ago. However, now I cant even get helloworld to run. After reading through basically ever similar topic I still cant get it to work so Ive decided to post my own topic.
Here is the error that I am getting when I try to run the helloworld template.

cd '/home/jordan/Desktop/Programming/hello' && CC="i586-mingw32msvc-c" CXX="i586-mingw32msvc-c++" LD="i586-mingw32msvc-ld" "/home/jordan/Desktop/Programming/hello/configure" && cd '/home/jordan/Desktop/Programming/hello/./src' && WANT_AUTOCONF_2_5="1" WANT_AUTOMAKE_1_6="1" LC_MESSAGES="C" LC_CTYPE="C" make hello
installing -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking for C++ compiler default output file name... a.exe
configure: error: in `/home/jordan/Desktop/Programming/hello':
configure: error: cannot run C++ compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details.
checking whether the C++ compiler works...
*** Exited with status: 1 ***

Question information

English Edit question
Ubuntu kdevelop Edit question
No assignee Edit question
Last query:
Last reply:

C++ and other compiler tools are not installed by default. MinGW is for Windozzzz development, not for Linux. On Linux you'll use the native GCC/GPP compilers.

Do the following:

sudo apt-get install build-essential
sudo aot-get install bison bison-doc automake autoconf automake-doc autoconf-doc
sudo apt-get install docbook docbook-to-man

You'll also want to launch synaptic and search for libstdc and make sure the docs are installed for your particular libstdc++ version.

I still think any linux distro should install the C/C++ development tools by default, and any library that's installed should also include the dev packages. Besides, at some point someone will likely need to complie a custom kernel, like I did to get my RT61 wifi card workign (kernel 2.6.31 driver code works better, the main difference is when the card is marked as inactive and able to accept configuration options, ver 2.6.24 has the card unable to accept config commands till ifconfig wlan0 up is issued-- which doesn't work too well. ver 2.6.31 only allows config when the card is inactive with ifconfig wlan0 down, which works perfectly.)

Now.. if you still want to run MinGW.... you'll need to run it using wine (specifically use wineconsole)

To get WINE: sudo apt-get install wine

Can you help with this problem?

Provide an answer of your own, or ask jordan for more information if necessary.

To post a message you must log in.