Homepage Wiki Forum Buy

C/C++

From GNUBLIN

C Applications

On Gnublin there is a gnu C-compiler. Unfortunatelly this compiler isn't the fastest one but for simple applications it's more than enough.

hello.c

 #include <stdio.h> 
 int main(void)
 {
   printf("Hello World!\r\n");
   return 0;
 }

Compile the file with:

gcc -o hello hello.c

And run with:

./hello

C++ Applications

On Gnublin there is a gnu C-compiler. Unfortunatelly this compiler isn't the fastest one but for simple applications it's more than enough.

hello.cpp


// C++ Hello World
 
#include <iostream>
 
using namespace std;
 
int main()
{
	cout << "Hello World!";
 
}

Compile the file with:

g++ -o hello hello.cpp

And call it with:

./hello
In other languages