Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ TheIDE » U++ TheIDE: Compiling, Linking, Debugging of your packages » Console 'Hello World' won't build.
Re: Console 'Hello World' won't build. [message #10908 is a reply to message #10907] Sat, 04 August 2007 03:09 Go to previous messageGo to previous message
JohnO is currently offline  JohnO
Messages: 4
Registered: August 2007
Location: Ireland
Junior Member
Hi,
Thanks for the reply - much appreciated.
I'm not sure that you really need the

CONSOLE_APP_MAIN
{
...
}

construct when building/executing a console-mode program from
within theIDE. Certainly the sample program (Prog_1) below compiles
and executes fine without it.

The second program (Prog_2) is just a minor modification of it using String (with
the <Core/Core.h> headers added) and it won't build. It still does
not recognise String. What other modification is required to Prog_2
to make it work?

Thanks.
John


------ Prog_1 -------
#include "stdio.h"
#include <iostream>

int main(int argc, const char *argv[])
{
char dummy;

std::cerr << "Hello, world! " << std::endl;

std::cin >> dummy;
return 0;
}


------ Prog_2 -------
#include "stdio.h"
#include <iostream>
#include <Core/Core.h>

int main(int argc, const char *argv[])
{
char dummy;
String a;

a = "Hello, world!";
std::cerr << a << std::endl;

std::cin >> dummy;
return 0;
}
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: What compiler are you using with Ultimate++?
Next Topic: Intel compiler
Goto Forum:
  


Current Time: Thu Aug 28 12:36:31 CEST 2025

Total time taken to generate the page: 0.09623 seconds