Mail Archives: djgpp/1998/07/06/02:01:37
From: | Alain Rosenthal <alain AT hyperman DOT co DOT il>
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | Help with RSXNTDJ
|
Date: | Mon, 06 Jul 1998 08:35:10 +0200
|
Organization: | Akiba Teknowlogies
|
Lines: | 58
|
Message-ID: | <35A0701E.2950@hyperman.co.il>
|
NNTP-Posting-Host: | ts028p1.jlm.netvision.net.il
|
Mime-Version: | 1.0
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
Soory for those all already read this message.
I did not get any answer in the newsgroup for my last posting...
(except a solution on "tempnam" problem)
So Here again are my questions:
Is there a way to debug (with gdb) functions compiled
with the -Zwin32 -Zrsx32 switch?
A few bugs that I found, If anybody know a solution, just tell me:
- 1: The getpid() keeps returning number 2 (when making WIN32
application)
under "DOS" gcc it works fine
-2 : the function feof() seems to provoke an error:
I tried the following:
********************
#include <stdio.h>
fmakeword(FILE *f, char stop, int *cl) {
int ll=0;
while(1) {
--(*cl);
if( (feof(f)) || (!(*cl)))
{
ll++;
printf("NUMBER is %d\n",ll);
return (ll);
}
++ll;
}
}
main()
{
int length = 18;
printf("HELLO\n");
fmakeword(stdin,'&',&length);
}
*****************************
Under DOS gcc it works fine
Compiled with -Zwin32 -Zrsx32 , it produces an error!
Any clue?
3- .
--
Alain Rosenthal alain AT hyperman DOT co DOT il
Tel: (972)(2)5814-999
Fax: (972)(2)5814-998
- Raw text -