X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f From: Robert Riebisch Newsgroups: comp.os.msdos.djgpp Subject: Re: argc/argv are not set up when compiling for profiling Date: Sun, 02 Nov 2008 21:40:28 +0100 Organization: none Lines: 27 Message-ID: <6n6hhsFjusulU1@mid.individual.net> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: individual.net 1dI+zsEPvQZYvxfCTSXpbA+9f+yFlVHkngL+o8wpHdecDDw1xA Cancel-Lock: sha1:jVW/X0vmsBi5lMfJNApsp0RCHlc= User-Agent: Thunderbird 2.0.0.17 (Windows/20080914) In-Reply-To: To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk Hans-Juergen Taenzer wrote: > #include > > int main(int argc, char** argv) > { > printf("argc: %d\n", argc); > return 0; > } > > gpp -g -pg tgp.cpp Btw: AFAIK this is a plain C code. No C++ here. > D:\MSC\ENTW\XPZCRead\DJPPP\tgp>.\a.out 1 2 3 > argc: 0 I can confirm this for DJGPP 2.04 + GCC 4.1.2 or 4.3.2. It does NOT happen with GCC 3.4.4! In 2006 there was a similar thread: http://newsgroups.derkeiler.com/Archive/Comp/comp.os.msdos.djgpp/2006-12/msg00041.html -- Robert Riebisch Bitte NUR in der Newsgroup antworten! Please reply to the Newsgroup ONLY!