i am new to code blocks and i am trying to right a simple hello world program but when i go to build it i get this
error: 'system' was not declared in this scope
dose anyone know how i can fix this
sorry i forgot to tell about my system i am running a eee pc i forget the modle number
my os is kubuntu 10.04
thanks for any help you may have
Hi s1n,
It would help if you can post your program's code here.
Regards,
Okaya
Just
#include <stdlib.h>
Quote from: zoogenic on May 18, 2010, 06:10:21 PM
Just
#include <stdlib.h>
The first Google result said to install and use GCC G++ command.
First Guess based on that info
1. Install GCC G++
2. Try changing file extension to .cpp
Second guess you are doing an C project with cpp extension
1. Change to use .c extension (lower case c) in C projects.
Tim S.
ahh.. why doesn't he get a "where the heck is main" error?