News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

Build Fail

Started by Star, August 13, 2009, 09:59:53 AM

Previous topic - Next topic

Star

I just installed codeblocks-8.02mingw for windows xp and created a new project. I attempted to run the main.cpp code as a test but when i clicked build i recieved the following error message:


-------------- Build: Debug in Project ---------------

Compiling: main.cpp
Execution of 'mingw32-g++.exe -Wall -fexceptions  -g     -c "C:\Documents and Settings\Starshine\My Documents\Project\main.cpp" -o obj\Debug\main.o' in 'C:\Documents and Settings\Starshine\My Documents\Project' failed.
Nothing to be done.


I've tried uninstalling codeblocks-8.02mingw and getting it without mingw (as was recommended by several people) but the error remained unchanged. Please assist.

vivi

i cant build too.even worse no response at all.pls guide and help me.some kind soul pls this is urgent as i need to hand it up soon.
/*This programme adds 2 integers.*/
# icnlude <stdio.h>

int main (void)
{ int number1,number2,sum;
  number1=20
  number2=25
  sum+number1+number2;
  printf("The sum of %d and %d is %d.",number1,number2,sum);
  return 0
}

blueshake

number1=20
  number2=25
  sum+number1+number2;
  printf("The sum of %d and %d is %d.",number1,number2,sum);
  return 0

; missed.
Keep low and hear the sadness of little dog.
I fall in love with a girl,but I don't dare to tell her.What should I do?

vivi

/*This programm adds two integers.*/
#include<stdio.h>

int main(void)
{  int number1,number2,sum;
   number1=20;
   number2=25;
   sum=number1+number2;
   printf("The sum of %d and %d is %d.",number1,number2,sum);
   return 0;
}
But even after i put; still cannot build.
Is it go to file click new click empty file ,then key in the above.
After that save it as c++ file.But when i click the build button nothing happen??the blue circle button.Then i click run but they say my file is not build yet??But how to build??


Pls guide..thanks for yr prompt reply.

blueshake

everything is ok.
see my attachment.
i think you need create a new console project not only a file.


[attachment deleted by admin]
Keep low and hear the sadness of little dog.
I fall in love with a girl,but I don't dare to tell her.What should I do?

vivi

#5
How to create a new project, then got so many category ,so must choose what?Thanks.
Can tell me step by step how u get the final picture that u attach?.First click on what a not ?Thanks.I feel so stupid....

blueshake

start the cb, you will see the attachment.
create a new project,choose the console
application.and next step.


[attachment deleted by admin]
Keep low and hear the sadness of little dog.
I fall in love with a girl,but I don't dare to tell her.What should I do?

vivi

Hi, but after that the screen is grey in colour.I cant type anything.

blueshake

from this ,I can guess you are very new to cb.
see my attachment.click the + before souce
and click the main.cpp file.

[attachment deleted by admin]
Keep low and hear the sadness of little dog.
I fall in love with a girl,but I don't dare to tell her.What should I do?

blueshake

Keep low and hear the sadness of little dog.
I fall in love with a girl,but I don't dare to tell her.What should I do?

vivi


vivi

hi,
after that, i typed

/*This programme adds 2 integers.*/
# include <stdio.h>

int main (void)
{ int number1,number2,sum;
  number1=20
  number2=25
  sum=number1+number2;
  printf("The sum of %d and %d is %d.",number1,number2,sum);
  return 0
}

Then i click the blue circle symbol, build, then become like that already...how come cannot get what u show me the exe
"ntu - Debug" uses an invalid compiler [YOUR ANSWER IS ALREADY THERE. SEARCH THE FORUMS!]. Skipping...
Nothing to be done.

vivi

yes, im new totally new.im not studying computer engineering but still must learn this course .=(WHAT THE....
thanks for yr help.

blueshake

you can down cb8.02 with mingw.try again.
Keep low and hear the sadness of little dog.
I fall in love with a girl,but I don't dare to tell her.What should I do?

Ancient Dragon

What is this thread??? some kind of joke?  :x  Its been hijacked so many times I'm supprised the mods have not deleted it.  No one has yet to answer the original poster's question (I have the same problem so that's why I'm here.).