Creating a Class in C++ 2005: Debug Report Error Analysis

  • Context: C/C++ 
  • Thread starter Thread starter splac6996
  • Start date Start date
  • Tags Tags
    Class
Click For Summary
SUMMARY

The discussion centers on an error encountered while using Microsoft Visual C++ 2005 to create a new class. The error message indicates a mismatch in the argument list for a function, specifically involving 'std::ostream' and 'void'. The user is advised to check the build log located at "c:\Documents and Settings\DEWAND JONES\My Documents\CSCI 1020\HOMEWORK5.2\HOMEWORK5.2\Debug\BuildLog.htm" for more detailed information. Additionally, it is noted that the user should provide their code for more accurate troubleshooting.

PREREQUISITES
  • Familiarity with Microsoft Visual C++ 2005 IDE
  • Understanding of C++ class creation and syntax
  • Knowledge of standard C++ libraries, particularly std::ostream
  • Ability to interpret compiler error messages and build logs
NEXT STEPS
  • Review the build log for detailed error messages in Microsoft Visual C++ 2005
  • Learn about function argument matching in C++
  • Explore common C++ compilation errors and their resolutions
  • Practice writing and debugging C++ classes in Microsoft Visual C++ 2005
USEFUL FOR

C++ developers, students learning object-oriented programming, and anyone troubleshooting compilation errors in Microsoft Visual C++ 2005.

splac6996
Messages
37
Reaction score
0
I am using C++ 2005 and trying to create a new class I believe I wrote my program correctly but when I gry to build I get an error back

here is my debug report

1> _Elem=char,
1> _Traits=std::char_traits<char>
1> ]
1> while trying to match the argument list '(std::ostream, void)'
1>Build log was saved at "file://c:\Documents and Settings\DEWAND JONES\My Documents\CSCI 1020\HOMEWORK5.2\HOMEWORK5.2\Debug\BuildLog.htm"
1>HOMEWORK5.2 - 1 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

can some tell me what that error means?
 
Technology news on Phys.org
GCC is cool. Do you use linux at school?

Check

c:\Documents and Settings\DEWAND JONES\My Documents\CSCI 1020\HOMEWORK5.2\HOMEWORK5.2\Debug\BuildLog.htm

It might have more usefull information about your error.
 
There's no such thing as "C++ 2005". You're using the program "Microsoft Visual C++ 2005", which is an IDE and compiler for the C++ programming language.

Usually, people post their code but not their error message, in this case it's the opposite. Posting your code would help. (And the complete error message. You've missed out the very lines where it tell you what problem it have with the code.)
 

Similar threads

  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 75 ·
3
Replies
75
Views
7K
  • · Replies 14 ·
Replies
14
Views
8K
  • · Replies 4 ·
Replies
4
Views
4K
  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 16 ·
Replies
16
Views
5K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 2 ·
Replies
2
Views
3K