A normal c++ program worked fine. It was the default console application template I had used. All I ever coded there is a cout<<"Hello world";... It outputted perfectly to the console window. And the last line of code is the system("pause");...Both these statements did their job.
However I included the python libraries and header files to the project. I did not make any python call or use one of their objects. The main() was same as the last exercise. The code compiled perfectly. However this time cout did not work! It only printed "Press any key to continue..."
What could be the problem here?
--deostroll
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I had to somehow suppress the mwindows switch, but I didn't know where to do it from...finally went into the project options; in the compiler tab and forced the linker to display a console...
So I guess this is fixed now, thankyou.
--deostroll
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I was trying to integrate python in my program...
A normal c++ program worked fine. It was the default console application template I had used. All I ever coded there is a cout<<"Hello world";... It outputted perfectly to the console window. And the last line of code is the system("pause");...Both these statements did their job.
However I included the python libraries and header files to the project. I did not make any python call or use one of their objects. The main() was same as the last exercise. The code compiled perfectly. However this time cout did not work! It only printed "Press any key to continue..."
What could be the problem here?
--deostroll
A good place to start would be to post your Basic 3. They are covered in the thread titled "Please Read Before Posting a Question"
I suspect that you are compiling a console application as a windows application, and your Basic 3 would have told us this already.
Wayne
True!
I had to somehow suppress the mwindows switch, but I didn't know where to do it from...finally went into the project options; in the compiler tab and forced the linker to display a console...
So I guess this is fixed now, thankyou.
--deostroll