Okay, what am I doing wrong here?

My first assignment for my CS class is to rewrite a simple program and to add the correct preprocessesor directory, namespace, and termination. For some reason it keeps giving me errors every time I build it.

Program "sh" not found in Path <- All my whats.
(Symbol 'cout' could not be resolved)x2
Symbol 'std' could not be resolved

I cannot figure out what the problem is. Everything seems right to me.
Could it simply be because Cygwin GCC is unsupported on my system, but I'm building it anyways?
That's probably it, isn't it....?
I'm extremely new, so pardon my ignorance.
(I also changed it up a bit)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/*
   File: 98765ryg.cpp

   Author: John Doe
   C.S.1300
   Program: popofpdsofp
   Due Date: 09/04/13

   Input: none
   Constants: none
   Output (screen): Doe, John
                    C.S.1300
                    09/04/13

                    Major: CS
                    Minor: None
                    Favorite Hobby: Pooping
*/

#include <iostream>

using namespace std;

int main ()
{
    cout << "Doe, John  \n"
         << "C.S.1300  \n"
         << "09/04/13  \n\n";

    cout << "Major: CS  \n"
         << "Minor: None  \n"
         << "Favorite Hobby: Pooping \n";

    return 0;
}
closed account (jwkNwA7f)
It looks fine to me. Probably something w/ your compiler. Sorry, I am not familiar w/ Cygwin.
Make sure you are building with g++ not gcc.

Then try instead to use bash shell instead of sh by typing bash, press enter then try to compile
Oh good, and yeah that's what I'm thinking. I've tried installing Cygwin 3 times and apparently I'm doing it wrong because GCC is still not supported.. Sigh. Thanks anyways.
Topic archived. No new replies allowed.