delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1995/12/26/06:04:01

Xref: news-dnh.mv.net comp.os.msdos.djgpp:4025
Path: news-dnh.mv.net!mv!news.sprintlink.net!usenet.kornet.nm.kr!usenet.hana.nm.kr!usenet.seri.re.kr!news.dacom.co.kr!news.netins.net!newsrelay.netins.net!solaris.cc.vt.edu!newsfeed.internetmci.com!in1.uu.net!wizard.pn.com!news.zeitgeist.net!vnetnews.value.net!veenet.value.net!not-for-mail
From: oracle AT veenet DOT value DOT net (informix)
Newsgroups: comp.os.msdos.djgpp
Subject: i just installed djgpp... it works, sort of...
Date: 26 Dec 1995 01:18:07 -0800
Organization: Pro Hemp Initiative
Lines: 41
Message-ID: <4boekf$5mu@veenet.value.net>
NNTP-Posting-Host: value.net
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

	I just installed djgpp yesterday. And have it up and running. 
	Compiled one program that worked. One that didn't. Here are a couple
	of problems that I have encountered.

	After running 112m1 (maint 1) I get this output.

File not found
File not found
Fixing libgpp.a . . .
c:/djgpp/bin/ar.exe obstack.o: file not found
You may remove blah blah blah...

	Going into the bat reveals two deletes for files not there and
	I seem to be missing obstack.o. What gives.

	Also, I have a small section of code that seems to be posing
	some problem.

	while((fgets(temp,120,fp))!=NULL) {
		sscanf(temp,"%s:%s:%*s:%*s:%*s:%*s:%*s",sent[index].name,
			sent[index].passwd);
		++index;
	}
	while(count<index) {
		printf("%s:%s\n",sent[count].name,sent[count].passwd);
		++count;
	}
	
	As you can see, fill a struct (two members name,passwd) from a 
	file. Then print it out.

	This works the way I want under my old compiler (desmet2.51) 
	but under gcc (I just switched compilers yesterday) that second
	while statement goes into an endless loop and that newline seems
	to have disappeared.

	Any help would be appreciated. Please email.

Ron

	

- Raw text -


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