Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Strange missing CDT console output(CDT Console)
Strange missing CDT console output [message #1802683] Thu, 14 February 2019 00:04 Go to next message
Phil S is currently offline Phil SFriend
Messages: 2
Registered: February 2019
Location: Seattle, USA
Junior Member
I have a newly installed Eclipse CDT on Linux Mint Tessa 19.1. Everything works fine, except when I create a new console application with the wizard and build/run/debug, I get a successful build message in the console, but no output from the program:

#include <stdio.h>
#include <stdlib.h>

int main(void) {
puts("!!!Hello World!!!"); /* prints !!!Hello World!!! */
return EXIT_SUCCESS;
}

CONSOLE WINDOW OUTPUT:

Building in: /home/radar/eclipse-workspace/Dev/build/default
make -f ../../Makefile
make: Nothing to be done for 'all'.
Build complete (0 errors, 0 warnings): /home/radar/eclipse-workspace/Dev/build/default


It looks like the output of the program goes to /dev/null or something and I'm starting off the install with default values. There is a ref on other forums to a Windows bug, but nothing I can find for Linux.
Re: Strange missing CDT console output [message #1802705 is a reply to message #1802683] Thu, 14 February 2019 10:10 Go to previous messageGo to next message
Tauno Voipio is currently offline Tauno VoipioFriend
Messages: 742
Registered: August 2014
Senior Member
There is something fishy in the set-up of your project.
The console output shows that nothing was built.

For reference, I created the default C hello project on Eclipse 2018-12 running
in Ubuntu 18.04.2 LTS Linux. The output is below:


12:01:58 **** Build of configuration Debug for project puts ****
make all
Building file: ../src/puts.c
Invoking: GCC C Compiler
gcc -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"src/puts.d" -MT"src/puts.o" -o "src/puts.o" "../src/puts.c"
Finished building: ../src/puts.c

Building target: puts
Invoking: GCC C Linker
gcc -o "puts" ./src/puts.o
Finished building target: puts


12:02:04 Build Finished. 0 errors, 0 warnings. (took 6s.775ms)

hello


--

Tauno Voipio
Re: Strange missing CDT console output [message #1802749 is a reply to message #1802705] Fri, 15 February 2019 06:33 Go to previous message
Phil S is currently offline Phil SFriend
Messages: 2
Registered: February 2019
Location: Seattle, USA
Junior Member
Many thanks! That is indeded the problem; nothing is being built. I think I got ahead of myself and need to find a "getting started" tutorial for CDT basic C apps, or sort thru the options carefully to build a hello world project,

Thanks again for spending time with a newbie :-)
Previous Topic:Cannot install Eclipse
Next Topic:MongoDB BIRT Data Source issues
Goto Forum:
  


Current Time: Fri Apr 19 23:05:51 GMT 2024

Powered by FUDForum. Page generated in 0.10534 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top