Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » C/C++ Console not display results(C/C++ Console not Display Results)
C/C++ Console not display results [message #1863092] Mon, 15 January 2024 14:59 Go to next message
Eclipse UserFriend
I'm new to the world of C/C++ and Eclipse. I've created a C++ project in Eclipse and it appears that my compile and build were successful. However when I view the Console display tab I'm getting the following:

openjdk version "17.0.9" 2023-10-17
OpenJDK Runtime Environment Temurin-17.0.9+9 (build 17.0.9+9)
OpenJDK 64-Bit Server VM Temurin-17.0.9+9 (build 17.0.9+9, mixed mode)

Why I'm getting the above display I'm not doing anything with Java or JDK.

What must I do to see the C/C++ results? I'm investigating perspectives and preferences and I';ve not found an answers yet, I'm still looking.

Thanks

Re: C/C++ Console not display results [message #1863235 is a reply to message #1863092] Fri, 19 January 2024 04:31 Go to previous message
Eclipse UserFriend
Hello, the output you are seeing in the Console display tab in Eclipse is related to the version information of the Java Development Kit (JDK) installed on your system. Eclipse is built on Java, so it displays the Java version information by default.

To view the C/C++ results in Eclipse, I think you need to configure the build settings and run the program properly. Here are a few steps to help you get started:

1. Create a new C++ project in Eclipse: Go to "File" > "New" > "C++ Project." Select a project type (e.g., "Hello World C++ Project") and specify the project name and location.

2. Write your C++ code: In the newly created project, you will find a source file (usually named "main.cpp"). Open that file and write your C++ code.

3. Build your project: Right-click on the project in the Project Explorer view and select "Build Project" to compile your code.

4. Run your program: Right-click on the project again and select "Run As" > "Local C/C++ Application" to execute your program. The output of your C++ program should now appear in the Console display tab.
Previous Topic:Using Eclipse CDT with Docker
Next Topic:Indexer marking method "Invalid Arguments"...
Goto Forum:
  


Current Time: Sun Apr 20 00:59:54 EDT 2025

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

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

Back to the top