Menu

Program compiles, Yet exe does not work...!

deostroll
2008-06-20
2012-09-26
  • deostroll

    deostroll - 2008-06-20

    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

     
    • Wayne Keen

      Wayne Keen - 2008-06-20

      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

       
      • deostroll

        deostroll - 2008-06-25

        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

         

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.