detecting program invocation from a symbolic link

2009-04-23 Thread ncokwqc02
I have some C++ code that runs from the command line in a console shell. It is designed to behave differently depending on whether it was called directly by name or by a differently named symbolic link. This is easy to check under Unix because argv[0] contains the name of the first command line

Re: detecting program invocation from a symbolic link

2009-04-23 Thread Christopher Faylor
On Thu, Apr 23, 2009 at 07:18:40PM -, ncokwq...@sneakemail.com wrote: I have some C++ code that runs from the command line in a console shell. It is designed to behave differently depending on whether it was called directly by name or by a differently named symbolic link. This is easy to

RE: detecting program invocation from a symbolic link

2009-04-23 Thread ncokwqc02
with the other compilers too. Any suggestions? jjo -Original Message- From: Christopher Faylor cgf-use-the-mailinglist-please-at-cygwin.com |cygwin.com| [mailto:...] Sent: Thursday, April 23, 2009 12:59 PM To: Subject: Re: detecting program invocation from a symbolic link On Thu, Apr 23

Re: detecting program invocation from a symbolic link

2009-04-23 Thread Larry Hall (Cygwin)
On 04/23/2009, ncokwqc02 wrote: Nice that it works with g++ but I need this to work with the other compilers too. Any suggestions? Lobby MS? Symbolic links that mimic the behavior of their brethren in the Linux/UNIX world are only supported by Cygwin. And for all those who might eagerly

Re: detecting program invocation from a symbolic link

2009-04-23 Thread Christopher Faylor
On Thu, Apr 23, 2009 at 02:42:09PM -0700, ncokwq...@sneakemail.com wrote: The result is apparently compiler dependent. Here's some simple test code: #include iostream int main(int, const char** argv) { using namespace std; cout Hello