c - What does this message mean? -


i using code blocks c programming , problem when run program have made , statement in build log.

-------------- build: debug in c assignment (compiler: gnu gcc compiler)---------------

mingw32-g++.exe  -o "bin\debug\c assignment.exe" obj\debug\main.o     mingw32-g++.exe: internal error: aborted (program collect2) please submit full bug report. see <url:http://www.mingw.org/bugs.shtml> instructions. process terminated status 1 (0 minutes, 0 seconds) 0 errors, 0 warnings (0 minutes, 0 seconds) 

what mean ? have output statments in program , don't desired output, instead above message in build log. way new c language , first time using code blocks ide.

edit:-

this program.

#include <stdio.h>   struct preparation_time{ int spongecake; int meringue; int chocalate; int red_velvet; };  void cake_order(struct preparation_time *);    main() {  struct preparation_time caketime;  cake_order(&caketime);   }   void cake_order(struct preparation_time *thetime) {     int i;      thetime->chocalate=25;     thetime->meringue=45;     thetime->red_velvet=60;     thetime->spongecake=30;       for(i=0;i<180;i++)     {          if(thetime->chocalate==i)         {             printf("chocalate cake");             thetime->chocalate=thetime->chocalate*2;          }     if(thetime->spongecake==i)     {         printf("sponge cake");         thetime->spongecake=thetime->spongecake*2;     }      if(thetime->meringue==i)     {         printf("meringue");         thetime->meringue=thetime->meringue*2;      }      if(thetime->red_velvet==i)     {          printf("red velvet");         thetime->red_velvet=thetime->red_velvet*2;     }  }  } 

thank time.

first, main should return 0;. style should declare explicitly int main.

then (i tried) there no warnings when compiling , program runs fine.

the problem there problem command-line path: backslashes, spaces, upper/lowercase.

  • first try moving obj\debug\main.o in front of -o.
  • try replacing backslashes forwardslashes.
  • if didn't work try use directories have no whitespaces, uppercase or special characters.
  • if didn't work, experiment: place in 1 directory , using filenames, no paths.

the less problem actual (mingw-)gcc compiler bug, in case should first update compiler , retry. if still fails submit asks.

good luck!


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

javascript - jQuery .height() return 0 when visible but non-0 when hidden -