I am learning c and I am using code::block
I have wrote this code "from ansi c book"
#include <stdio.h>
#include <stdlib.h>
float convertToCelsius(float f);
int main()
{
int start = 0;
int step = 5;
int upper = 300;
printf("%3c\t%6c\n",'F','C');
while(start < upper){
printf("%3d\t%6.3f\n", start, convertToCelsius(start));
start += step;
}
return 0;
}
float convertToCelsius(float f){
return (5.0/9)*(f-32);
}
when I run the code from the IDE "code::blocks" it compile and run without problems but when I compile the c file using gcc in cygwin and try to run the exe file it gives me this message
the procedure entry point __cxa_atexit could not be located in the dynamic link library C:\cygwin\home\username\convert.exe
I have search but couldn't find related direct answer
what is the problem ?