Screwed Up Somewhere

This is a discussion on Screwed Up Somewhere within the C++ Programming forums, part of the General Programming Boards category; Hello, I'm new to programming. I downloaded Code::Blocks and followed all the instructions. When I tried to do the simple ...

  1. #1
    Registered User
    Join Date
    Nov 2008
    Posts
    3

    Question Screwed Up Somewhere

    Hello, I'm new to programming. I downloaded Code::Blocks and followed all the instructions. When I tried to do the simple HelloWorld program, I ran into this error for Code::Blocks:

    C:\files\VCPPFiles\HelloWorld\Untitled1.c|1|iostre am: No such file or directory|
    C:\files\VCPPFiles\HelloWorld\Untitled1.c||In function `main':|
    C:\files\VCPPFiles\HelloWorld\Untitled1.c|5|error: `using' undeclared (first use in this function)|
    C:\files\VCPPFiles\HelloWorld\Untitled1.c|5|error: (Each undeclared identifier is reported only once|
    C:\files\VCPPFiles\HelloWorld\Untitled1.c|5|error: for each function it appears in.)|
    C:\files\VCPPFiles\HelloWorld\Untitled1.c|5|error: syntax error before "namespace"|
    C:\files\VCPPFiles\HelloWorld\Untitled1.c|6|error: `cout' undeclared (first use in this function)|
    C:\files\VCPPFiles\HelloWorld\Untitled1.c|6|error: `endl' undeclared (first use in this function)|
    ||=== Build finished: 7 errors, 0 warnings ===|
    Last edited by rizon; 11-11-2008 at 08:26 PM.

  2. #2
    Registered User
    Join Date
    Oct 2008
    Posts
    55
    Looks like you're compiling a cpp file as a c file.
    Try changing the filename to whatever.cpp.
    Make sure you're compiling a cpp project.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. I screwed my pendrive
    By abh!shek in forum Tech Board
    Replies: 0
    Last Post: 06-30-2008, 02:32 PM
  2. common problem? help me:I'm screwed
    By Shadow12345 in forum Game Programming
    Replies: 1
    Last Post: 05-27-2002, 03:11 PM
  3. Timers, Edits, Something is screwed up =\
    By Okiesmokie in forum Windows Programming
    Replies: 5
    Last Post: 05-19-2002, 02:45 AM
  4. MS Screwed Me Again!
    By Troll_King in forum A Brief History of Cprogramming.com
    Replies: 12
    Last Post: 10-26-2001, 11:44 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21