www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/05/29/21:15:25

From: "Tony O'Bryan" <aho450s AT nic DOT smsu DOT edu>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Runtime error with simple program. Please help!I'm learning C now and use DJGPP as the compiler for
Date: Fri, 29 May 1998 19:58:28 +0000
Organization: Southwest Missouri State Universtiy
Lines: 19
Message-ID: <356F1364.1DE4B822@nic.smsu.edu>
References: <356e0a7c DOT 886413 AT news DOT vol DOT net>
NNTP-Posting-Host: clark.a02.smsu.edu
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Samuel wrote:

> I don't understand why I got such an error. I did a search
> in the faq that came with the package for SIGSEGV, but what
> I found didn't solve my problem. The DJGPP I used is 2.01

Please post the actual source that you compiled, rather than retyping it
online.  I compiled this under Linux with:

gcc -Wall -Werror main.c -o main

(I called the file main.c just because I needed to pick an easy name)

It compiled and ran without errors.  I suspect that you retyped the code
rather than posting the actual file because of your "prinft" typo.  This
would not have linked since there is no function named prinft in the
standard libraries.


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019