Author Topic: Cant Compile  (Read 4646 times)

Offline dharmil007

  • Single posting newcomer
  • *
  • Posts: 3
Cant Compile
« 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 !!!!!!!!!

Offline Folco

  • Regular
  • ***
  • Posts: 343
    • Folco's blog (68k lover)
Re: Cant Compile
« Reply #1 on: May 26, 2010, 09:32:19 pm »
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...
Kernel Extremist - PedroM power ©

Offline dharmil007

  • Single posting newcomer
  • *
  • Posts: 3
Re: Cant Compile
« Reply #2 on: May 27, 2010, 06:54:22 am »
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.

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7252
Re: Cant Compile
« Reply #3 on: May 27, 2010, 07:41:12 am »
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/ or wait for the next release, which will come soon.

Offline dharmil007

  • Single posting newcomer
  • *
  • Posts: 3
Re: Cant Compile
« Reply #4 on: May 27, 2010, 06:35:57 pm »
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


So can u pls. explain me y ???
« Last Edit: May 27, 2010, 07:00:16 pm by dharmil007 »

Offline Jasper

  • Multiple posting newcomer
  • *
  • Posts: 10
Re: Cant Compile
« Reply #5 on: May 29, 2010, 05:47:26 pm »
clrscreen is an obscure ancient windows-only function. Do not use it. C++ doesn't really support clearing the screen, but this 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)