www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2008/11/02/15:45:11

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
From: Robert Riebisch <Robert DOT Riebisch AT arcor DOT de>
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: <Ap7xN2elb3B AT hans-juergen DOT taenzer DOT dialin DOT t-online DOT de>
Mime-Version: 1.0
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: <Ap7xN2elb3B@hans-juergen.taenzer.dialin.t-online.de>
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

Hans-Juergen Taenzer wrote:

> #include <stdio.h>
> 
> 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!

- Raw text -


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