www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1995/07/29/15:13:43

Date: Sat, 29 Jul 1995 14:19:47 -0400
To: djgpp AT sun DOT soe DOT clarkson DOT edu
From: egley AT albany DOT net (Skip Egley)
Subject: argc and argv

        
Sorry if this is a REAL newbie question, but I'm "GNUish" to this (yuk,
yuk). Sorry but I couldn't resist.

Can't I use argc and argv in the main() argument list under djgpp?
I read something that looks like it might apply to my question in the FAQ,
but to be honest, I really don't quite follow it.  I tried putting "_argc"
and "char *_argv0" as the arguments in my main() (instead of the normal int
argc, char *argv[]), but it complains about an "undefined reference to 'main'".

Any help?

Thanks,
Skip Egley




- Raw text -


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