Re: Cannot get 'Hello World' to compile

2009-08-28 Thread Dave Korn
ken j wrote: > > Christopher Faylor-8 wrote: >> >> I've been hoping that I won't have to step in and be mean but I would >> appreciate it if you would find some other forum for working out your >> beginner programming issues. >> >> > > Sorry for pursuing a meaningful dialogue with a helpful fello

Re: Cannot get 'Hello World' to compile

2009-08-28 Thread ken j
Christopher Faylor-8 wrote: > > > I've been hoping that I won't have to step in and be mean but I would > appreciate it if you would find some other forum for working out your > beginner programming issues. > > Sorry for pursuing a meaningful dialogue with a helpful fellow user in the wrong

Re: Cannot get 'Hello World' to compile

2009-08-28 Thread Christopher Faylor
On Fri, Aug 28, 2009 at 10:05:50AM -0700, Gary Johnson wrote: >On 2009-08-28, Christopher Faylor wrote: >>I'm not seeing a whole-lot of cygwin-specific issues here. The cygwin >>list is not here to help people get up to speed on how to program or >>how to use UNIX. >> >>I've been hoping that I won

Re: Cannot get 'Hello World' to compile

2009-08-28 Thread Gary Johnson
On 2009-08-28, Christopher Faylor wrote: > I'm not seeing a whole-lot of cygwin-specific issues here. The cygwin > list is not here to help people get up to speed on how to program or how > to use UNIX. > > I've been hoping that I won't have to step in and be mean but I would > appreciate it if

Re: Cannot get 'Hello World' to compile

2009-08-28 Thread Christopher Faylor
On Fri, Aug 28, 2009 at 09:42:57AM -0700, ken j wrote: > > >Mark J. Reed wrote: >> >> On Fri, Aug 28, 2009 at 10:34 AM, ken j wrote: >>>BTW I've found that I do NOT need to type './' but >>> rather only '/' to get an exe file to run in Cygwin. >> >> That's only true if the executable is in the ro

Re: Cannot get 'Hello World' to compile

2009-08-28 Thread ken j
Mark J. Reed wrote: > > On Fri, Aug 28, 2009 at 10:34 AM, ken j wrote: >>BTW I've found that I do NOT need to type './' but >> rather only '/' to get an exe file to run in Cygwin. > > That's only true if the executable is in the root directory (c:\cygwin > in Windows, / in Cygwin). OK I see th

Re: Cannot get 'Hello World' to compile

2009-08-28 Thread Mark J. Reed
On Fri, Aug 28, 2009 at 10:34 AM, ken j wrote: >BTW I've found that I do NOT need to type './' but > rather only '/' to get an exe file to run in Cygwin. That's only true if the executable is in the root directory (c:\cygwin in Windows, / in Cygwin). > Also, all of my compiled executables go to c

Re: Cannot get 'Hello World' to compile

2009-08-28 Thread ken j
OK that helps. I'm new to Linux/Unix but I have some experience with DOS and batch files, etc. Some things in Cygwin don't follow the same conventions as DOS (or a DOSBox), obviously, like for example in DOS if an exe file is in the directory you are in, you can just type the file name and it will

Re: Cannot get 'Hello World' to compile

2009-08-28 Thread Matthias Andree
ken j schrieb: > Hi, I am a COMPLETE newby at programming but am trying hard to get as far as > I can on my own. I have installed Cygwin, with the gcc compiler package, and > it all seems to be working OK. I'm using the 'Hello World' sample program > used in the tutorial at cplusplus.com - code is

Re: Cannot get 'Hello World' to compile

2009-08-28 Thread Mark J. Reed
On Fri, Aug 28, 2009 at 8:51 AM, ken j wrote: > That was it - using g++ as the compiler and changing the file name to .cpp > The executable file was placed in my cygwin/home/username folder. Do I have > to specify that folder in the set path variable for Cygwin to see it? I'm > not entirely clear

Re: Cannot get 'Hello World' to compile

2009-08-28 Thread ken j
That was it - using g++ as the compiler and changing the file name to .cpp The executable file was placed in my cygwin/home/username folder. Do I have to specify that folder in the set path variable for Cygwin to see it? I'm not entirely clear on this issue. I really appreciate the help! Ken Mar

Re: Cannot get 'Hello World' to compile

2009-08-28 Thread Mark J. Reed
You named your program with a .c and ran gcc on it. Both of those mean C, which is a different language from C++. A C++ compiler will compile a C program, but not the other way around. Rename your file to end in .cc, .c++, .cpp, or .cxx, your choice (or capital .C if you have case sensitivity tu

Cannot get 'Hello World' to compile

2009-08-28 Thread ken j
Hi, I am a COMPLETE newby at programming but am trying hard to get as far as I can on my own. I have installed Cygwin, with the gcc compiler package, and it all seems to be working OK. I'm using the 'Hello World' sample program used in the tutorial at cplusplus.com - code is as follows: // my fir