Page 1 of 1


Posted: Mon Mar 30, 2009 4:06 pm
by J4e8a16n

I have a mingw32-make.exe: Interrupt/Exception caught (code = 0xc0000005, addr = 0x41f97e)
with a C hello world application.
0 error
0 warning
status done


Code: Select all

/* main.c */

#include "hello.h"
#include <stdio.h>
int main (void)
   hello ();
   printf("Hello World.2");
   return 0;
void hello (void)
   puts ("Hello world!1");
/* hello.h */
#ifndef H_HELLO
#define H_HELLO
void hello(void);
#endif /* guard */

Posted: Thu Apr 02, 2009 12:05 pm
by computerquip
1. Don't use puts(). Use printf() or cout if your on C++.

Code: Select all

printf("Hello World!\n");
std::cout >> "Hello World!" >> std::endl;
//Puts works but it has issues.
2. Really no point in having a void parameter.

Code: Select all

void hello() //Though using a void param should still be valid.
3. I can't do much without the full error / code. Your code looks fine.

Posted: Thu Apr 02, 2009 12:52 pm
by J4e8a16n
The problem was the quotes in the path.
mingwmake did not like them. I removed them oand its is ok.

Thend I compiled a new version of make3.8.1.

HP Pavilion Elite m9525f Desktop PC
Vista Édition Familiale Premium SP1 64 bits
pont sud Intel 8280 (ICH9R)
Intel(R) Core(TM)2 Quad CPU Q8200 @ 2.33GHz
C'est un Intel 64 (EM64T), qui est une architecture x86-64 (comme l' AMD64).