C++ simple problem, doesn't recognize some std::cout
I don't know what's goin' on, it happens to me in every project but I don't know what I'm doing wrong! looked for solution in the code for over a hour.
here's some code : Code:
<b>main.cpp</b> The problem is that it says that the cout and endl in that bold line are not in std even if I do instead std::cout and std::endl Thanks for your help! |
Because you still need to
Code:
#include <iostream> |
Quote:
it says now that there are multiple definitions for the constructor... weird// Quote:
|
You need to #endif at the end of cimage.h
Do you by any chance #include cimage.cpp in any other files?, the #include should be cimage.h, the header file not the source code. |
All times are GMT -5. The time now is 07:05 AM. |