std::cout why i didn't get an output

Hi all,
when i put a message with std::cout<<"hello" <<std::endl; in the cxx file it works

but when i put this message in the .h or .txx I don't get the message in the out. Do I miss somthing, I put this message to track a code.
Thanks,
Last edited on
Where exactly do you put this in the .h or .txx file? Could you show some code?
i put the same code ( with the cout), but it didn't work, the program works it just i don't ge the message "hello"
Last edited on
Can you paste your code here?

Don't forget to use the [code] tags around your code.
I put this message to track a code.

Well... Perhaps the piece of code you're tracking actually doesn't execute...

btw: I precise that the files .txx and .h are itk files that I copied to my project. I m wondering if the problem is that there are two copies of these files in my project and in the itk directory ...


=======
the code is really very big, so i give more details about the problem

in the exec file (main .cxx) everythig works including std::cout, but when i put the std::cout in the file1.txx (included in the .cxx), the code works but i don't get the message, see the code below

1
2
3
4
5
6
7
8
9
10
11
12
//file1.txx
.....
....

void 
classA<..>::Update()
{
....
 std::cout<<"Hello" <<std::endl; 

  this->Superclass::Initialize();
}
Last edited on
Are you sure that function is getting called?
Hi Galik,
thanks i fixed the problem... I had two copies of the .txx and .h files so I had to rename one copy to fix the problem

PROBLEM SOLVED


thanks,
Topic archived. No new replies allowed.