compile error

This is a discussion on compile error within the C++ Programming forums, part of the General Programming Boards category; I'm having trouble trying to figure out what the compile error is for my program. When i compile my program ...

  1. #1
    Registered User
    Join Date
    Oct 2010
    Posts
    33

    compile error

    I'm having trouble trying to figure out what the compile error is for my program. When i compile my program [it's a class by the way] i get this message:

    Code:
    g++ Date.cpp driver.cpp
    Date.cpp: In member function `void Date::display(std::ostream&) const':
    Date.cpp:72: error: invalid operands of types `const char[1]' and `const int' to
     binary `operator<<'
    Date.cpp:73: error: invalid operands of types `const char[1]' and `const int' to
     binary `operator<<'
    Date.cpp:73: error: expected `)' before ';' token
    Date.cpp:73: error: expected `)' before ';' token
    anyone know what could be the matter? The code is long, so if it'll help, I can post it when requested.

    Thank you

  2. #2
    Registered User
    Join Date
    Oct 2010
    Posts
    33
    nevermind, i figured it out. sorry for the inconvenience

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. compile time error or runtime error?
    By George2 in forum C# Programming
    Replies: 3
    Last Post: 05-07-2008, 08:08 AM
  2. Compile error... Resource error to :/.
    By Blackroot in forum Windows Programming
    Replies: 3
    Last Post: 08-23-2006, 06:09 PM
  3. 0 compile error but 2 build error. need help please!
    By jibbles in forum C Programming
    Replies: 5
    Last Post: 08-30-2004, 05:30 PM
  4. compile once, compile twice ...error
    By Benzakhar in forum Windows Programming
    Replies: 6
    Last Post: 12-28-2003, 06:00 AM
  5. error C2061 - Compile Error
    By GaGi in forum C++ Programming
    Replies: 1
    Last Post: 01-22-2002, 11:50 PM

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