Click here to Skip to main content
15,888,968 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Precision in C Pin
Rick York29-Nov-17 19:51
mveRick York29-Nov-17 19:51 
AnswerRe: Precision in C Pin
Richard MacCutchan29-Nov-17 21:40
mveRichard MacCutchan29-Nov-17 21:40 
SuggestionRe: Precision in C Pin
David Crow30-Nov-17 5:20
David Crow30-Nov-17 5:20 
Questionwhat is contained in iostream and std Pin
Anonygeeker28-Nov-17 23:21
Anonygeeker28-Nov-17 23:21 
AnswerRe: what is contained in iostream and std Pin
CPallini29-Nov-17 0:33
mveCPallini29-Nov-17 0:33 
GeneralRe: what is contained in iostream and std Pin
Anonygeeker29-Nov-17 1:16
Anonygeeker29-Nov-17 1:16 
GeneralRe: what is contained in iostream and std Pin
CPallini29-Nov-17 1:23
mveCPallini29-Nov-17 1:23 
AnswerRe: what is contained in iostream and std Pin
jschell29-Nov-17 12:39
jschell29-Nov-17 12:39 
QuestionC++ cout in header file error - ‘cout’ was not declared in this scope Pin
Vaclav_27-Nov-17 14:23
Vaclav_27-Nov-17 14:23 
I have a "scaffolding printout" in main C++ function working just fine in { #ifdef MY_DEBUG ... #endif } debug code block .
I have included a test header file with a class and I have a test function there with same debug code block .

I have to redefine #define MY_DEBUG and re-include

#include <iostream>
using namespace std;

in the added header file to get the debug test printout.


I have never experienced such (odd) behavior, or is that normal? This is my first real crosscompiled CPP app if that matters.

Not looking forward including all this in every header file.
Perhaps it is a compiler / crosscompiler (gcc) options I have missed?

Thanks for any hints / help
Cheers
Vaclav
QuestionRe: C++ cout in header file error - ‘cout’ was not declared in this scope Pin
David Crow27-Nov-17 16:47
David Crow27-Nov-17 16:47 
AnswerRe: C++ cout in header file error - ‘cout’ was not declared in this scope Pin
CPallini27-Nov-17 21:31
mveCPallini27-Nov-17 21:31 
AnswerRe: C++ cout in header file error - ‘cout’ was not declared in this scope Pin
Jochen Arndt27-Nov-17 21:26
professionalJochen Arndt27-Nov-17 21:26 
AnswerRe: C++ cout in header file error - ‘cout’ was not declared in this scope Pin
Richard MacCutchan27-Nov-17 21:53
mveRichard MacCutchan27-Nov-17 21:53 
GeneralRe: C++ cout in header file error - ‘cout’ was not declared in this scope Pin
Vaclav_28-Nov-17 4:09
Vaclav_28-Nov-17 4:09 
GeneralRe: C++ cout in header file error - ‘cout’ was not declared in this scope Pin
Richard MacCutchan28-Nov-17 4:25
mveRichard MacCutchan28-Nov-17 4:25 
GeneralRe: C++ cout in header file error - ‘cout’ was not declared in this scope Pin
Vaclav_28-Nov-17 7:07
Vaclav_28-Nov-17 7:07 
GeneralRe: C++ cout in header file error - ‘cout’ was not declared in this scope Pin
Richard MacCutchan28-Nov-17 8:37
mveRichard MacCutchan28-Nov-17 8:37 
AnswerRe: C++ cout in header file error - ‘cout’ was not declared in this scope Pin
Jochen Arndt28-Nov-17 4:54
professionalJochen Arndt28-Nov-17 4:54 
GeneralRe: C++ cout in header file error - ‘cout’ was not declared in this scope Pin
Vaclav_28-Nov-17 7:46
Vaclav_28-Nov-17 7:46 
GeneralRe: C++ cout in header file error - ‘cout’ was not declared in this scope Pin
Jochen Arndt28-Nov-17 8:39
professionalJochen Arndt28-Nov-17 8:39 
GeneralRe: C++ cout in header file error - ‘cout’ was not declared in this scope Pin
David Crow28-Nov-17 8:14
David Crow28-Nov-17 8:14 
GeneralRe: C++ cout in header file error - ‘cout’ was not declared in this scope Pin
Vaclav_28-Nov-17 11:26
Vaclav_28-Nov-17 11:26 
GeneralRe: C++ cout in header file error - ‘cout’ was not declared in this scope Pin
David Crow28-Nov-17 14:03
David Crow28-Nov-17 14:03 
GeneralRe: C++ cout in header file error - ‘cout’ was not declared in this scope Pin
Richard MacCutchan28-Nov-17 21:40
mveRichard MacCutchan28-Nov-17 21:40 
AnswerRe: C++ cout in header file error - ‘cout’ was not declared in this scope Pin
Vaclav_28-Nov-17 12:25
Vaclav_28-Nov-17 12:25 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.