Home » U++ TheIDE » U++ TheIDE: Compiling, Linking, Debugging of your packages » Console 'Hello World' won't build.  
	
		
		
			| Console 'Hello World' won't build. [message #10906] | 
			Fri, 03 August 2007 23:30   | 
		 
		
			
				
				
				
					
						  
						JohnO
						 Messages: 4 Registered: August 2007  Location: Ireland
						
					 | 
					Junior Member  | 
					 | 
		 
		 
	 | 
 
	
		Hi, 
 Here is a simple console program which won't build (in theIDE). 
It gives this error: 
 
 syntax error : missing ';' before identifier 'a' 
 
This code is basically from the Core value types tutorial. 
Type 'String' doesn't appear to be recognised. 
Any idea what's up with this code? 
 
Thanks, 
John 
 
--------------------------- 
#include "stdio.h" 
#include <iostream> 
 
using namespace Upp; 
 
int main(int argc, const char *argv[]) 
{ 
char dummy; 
String a; 
 
a = "Howdy"; 
a = a + " Partner!"; 
 
std::cerr << "Hello, platform! " << std::endl; 
std::cerr << a << std::endl; 
std::cin >> dummy; 
return 0; 
} 
		
		
		
 |  
	| 
		
	 | 
 
 
 |  
  
 
Goto Forum:
 
 Current Time: Tue Nov 04 17:04:54 CET 2025 
 Total time taken to generate the page: 0.04495 seconds 
 |