Connecting Tech Pros Worldwide Help | Site Map

Help creating an executable from a .cpp

  #1  
Old November 15th, 2006, 04:55 PM
B. Williams
Guest
 
Posts: n/a
Will someone tell me know how to create an executable file from a .cpp file? I am using Microsoft Visual C++ 2005 Windows XP SP2.

Thanks
  #2  
Old November 15th, 2006, 05:15 PM
Salt_Peter
Guest
 
Posts: n/a

re: Help creating an executable from a .cpp



B. Williams wrote:
Quote:
Will someone tell me know how to create an executable file from a .cpp file? I am using Microsoft Visual C++ 2005 Windows XP SP2.
>
Thanks
Please don't Post using hyper text.

The following is an executable if you compile it.

// test.cpp
#include <iostream>

int main()
{
std::cout << "hello!\n";
}

In fact, all you need is

int main()
{
}

  #3  
Old November 15th, 2006, 05:45 PM
B. Williams
Guest
 
Posts: n/a

re: Help creating an executable from a .cpp



"Salt_Peter" <pj_hern@yahoo.comwrote in message
news:1163611981.742943.212630@h54g2000cwb.googlegr oups.com...
Quote:
>
B. Williams wrote:
Quote:
>Will someone tell me know how to create an executable file from a .cpp
>file? I am using Microsoft Visual C++ 2005 Windows XP SP2.
>>
>Thanks
>
Please don't Post using hyper text.
>
The following is an executable if you compile it.
>
// test.cpp
#include <iostream>
>
int main()
{
std::cout << "hello!\n";
}
>
In fact, all you need is
>
int main()
{
}
I would like to apologize for the html post. Thans for your assistance.
After I compiled it, I found the .exe in the debug folder.


Closed Thread


Similar Threads
Thread Thread Starter Forum Replies Last Post
Zen and the Art of Debugging C/C++ in Visual Studio jwwicks insights 0 August 7th, 2008 01:53 AM
cygwin gdb always fails creating process (error 193) edwardzyang@thewritingpot.com answers 1 December 6th, 2006 07:45 AM
using a static library from a static library Manny Silva answers 3 November 17th, 2005 05:11 PM
What IDE are you using? typingcat@gmail.com answers 121 October 31st, 2005 08:25 PM