Code::Blocks Forums
User forums => Help => Topic started by: dharmil007 on May 26, 2010, 09:09:16 pm
-
i M just a basic programmer trying to learn C.
i recently Downloaded Code::blocks & was trying to compile a Simple file.
Which i wrote in notepad
When i opened that file in Code::blocks & tried to Compile it, nothing happened.
The programme just shifted to logs, but nothing was written in logs also.
So can anybody PlS. Help !!!!!!!!!
-
OS, OS version, codeblocks version etc please...
Steps you did to import your file in a c::b project please...
We can't know what you don't say...
-
i M Using Windows 7.
& dwnloaded this file codeblocks-8.02-setup.exe
i Just opened the file which i had typed earlier& wanted to compile & dont know anything about project.
-
And you most likely do not have a compiler installed.
The package you mention does not distribute one.
The compiler in the other 8.02-release-installer is not vista/win7 compatible.
You can try this one: http://www.tdragon.net/recentgcc/ (http://www.tdragon.net/recentgcc/) or wait for the next release, which will come soon.
-
hey buddy thanks for your reply.
But 1 thing i cant understand.
As from when i have learnt C, i have learnt to write clrscr ()
i Have leanrt using Turbo C++ 3.0
But whenevr i compile this programe & try to write clrscr (), it rejects the programme, giving clrscr () as error.
& whenever i compile a programme, i get this msg after successful compilation
(http://i47.tinypic.com/3539mhg.png)
So can u pls. explain me y ???
-
clrscreen is an obscure ancient windows-only function. Do not use it. C++ doesn't really support clearing the screen, but this (http://www.cprogramming.com/faq/cgi-bin/smartfaq.cgi?answer=1031963460&id=1043284385) might explain some ways to it nevertheless.
The message you are getting means that your program ran and finished running. The message only displays if you have "Pause when execution ends" checked in project options->build settings (right below type: console application)