X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f Message-ID: <009d01c1a2c2$d714bc20$6e0510ac@et30> From: "Jade" To: Subject: What's going on Date: Mon, 21 Jan 2002 15:30:25 -0600 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_009A_01C1A290.8C5733C0" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2919.6700 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 Reply-To: djgpp AT delorie DOT com This is a multi-part message in MIME format. ------=_NextPart_000_009A_01C1A290.8C5733C0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable KLook at this program and tell me if this suppose to guive a general = protection fault. I put this as an example because it makes the same thing that the = program I'm working on. I compile both with the following command line gcc -o =20 and the compiler didn't told me a single warning. I'm working on a pentium adn running gcc under windows 2000 pro. The program in wich I'm working needs to print argv. #include int main (int argc,char * argv) { printf("%s \n",argv[0]); printf("%s \n",argv[1]); } ------=_NextPart_000_009A_01C1A290.8C5733C0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
KLook at this program and tell me if = this suppose=20 to guive a general protection fault.
I put this as an example because = it makes the=20 same thing that the program I'm working on. I compile both with the = following command line
gcc <program.c>  -o=20 <program.exe>
and the compiler didn't told me a = single=20 warning.
I'm working on a pentium adn running = gcc under=20 windows 2000 pro.
The program in wich I'm working needs = to print=20 argv.
#include<stdio.h>
 
int main (int argc,char * = argv)
{
 
printf("%s \n",argv[0]);
 
printf("%s=20 \n",argv[1]);
}
------=_NextPart_000_009A_01C1A290.8C5733C0--