User forums > Help

Build Fail

(1/3) > >>

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:

--- Code: ---number1=20
  number2=25
  sum+number1+number2;
  printf("The sum of %d and %d is %d.",number1,number2,sum);
  return 0
--- End code ---
; missed.

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]

Navigation

[0] Message Index

[#] Next page

Go to full version