Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 04 May 1999 15:02:38 +0100
From:      Tomas Reilly <thomas.reilly@nuigalway.ie>
To:        freebsd-questions@FreeBSD.ORG
Subject:   Exec format error. Wrong Architecture.
Message-ID:  <372EFDFE.A06728F8@nuigalway.ie>

next in thread | raw e-mail | index | archive | help
Hi there!
    I keep getting the following error when i try to run any c programs:
for example using a simple test program like
tom.c

#include<stdio.h>

void main(void)
{

int x;

printf("X is %d\n",x);

}

 i give the following command:

gcc -o tom -c tom.c

and i get this when i run the executable tom:

./tom:Exec format error. Wrong Architecture.

Why does this happen? and how do i fix this?

Any help would be greatly appreciated!




To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?372EFDFE.A06728F8>