From owner-freebsd-questions Tue May 4 8:29:55 1999 Delivered-To: freebsd-questions@freebsd.org Received: from BODKIN.NUIGALWAY.IE (bodkin.nuigalway.ie [140.203.7.16]) by hub.freebsd.org (Postfix) with ESMTP id 9F623157A4 for ; Tue, 4 May 1999 08:29:40 -0700 (PDT) (envelope-from thomas.reilly@nuigalway.ie) Received: from nuigalway.ie (it-p30.nuigalway.ie) by bodkin.nuigalway.ie (PMDF V5.1-10 #23794) with ESMTP id <01JASXSA40HC00AG8Z@bodkin.nuigalway.ie> for freebsd-questions@FreeBSD.ORG; Tue, 4 May 1999 14:59:58 GMT Date: Tue, 04 May 1999 15:02:38 +0100 From: Tomas Reilly Subject: Exec format error. Wrong Architecture. To: freebsd-questions@FreeBSD.ORG Message-id: <372EFDFE.A06728F8@nuigalway.ie> Organization: IT Centre, NUI, Galway MIME-version: 1.0 X-Mailer: Mozilla 4.05 [en] (X11; I; FreeBSD 2.2.7-RELEASE i386) Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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 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