Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. I can build but cant run my program...

I can build but cant run my program...

Scheduled Pinned Locked Moved C / C++ / MFC
c++
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • X Offline
    X Offline
    xelios
    wrote on last edited by
    #1

    Following is the simple code of my application...

    // Ex_01.cpp : Defines the entry point for the console application.
    //

    #include "stdafx.h"
    #include < iostream >
    // the space in < iostream > is due to the restriction in this post..

    int _tmain(int argc, _TCHAR* argv[])
    {
    std::cout << "Hello World!\n";
    return 0;
    }

    The out put of this program on console is as follows: The system cannot execute the specified program. Press any key to continue...

    Mohsin Ali

    H 1 Reply Last reply
    0
    • X xelios

      Following is the simple code of my application...

      // Ex_01.cpp : Defines the entry point for the console application.
      //

      #include "stdafx.h"
      #include < iostream >
      // the space in < iostream > is due to the restriction in this post..

      int _tmain(int argc, _TCHAR* argv[])
      {
      std::cout << "Hello World!\n";
      return 0;
      }

      The out put of this program on console is as follows: The system cannot execute the specified program. Press any key to continue...

      Mohsin Ali

      H Offline
      H Offline
      hoxsiew
      wrote on last edited by
      #2

      Are you compiling for the correct platform?

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups