By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,599 Members | 1,148 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,599 IT Pros & Developers. It's quick & easy.

Help creating an executable from a .cpp

P: 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
Nov 15 '06 #1
Share this Question
Share on Google+
2 Replies


P: n/a

B. Williams wrote:
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()
{
}

Nov 15 '06 #2

P: n/a

"Salt_Peter" <pj*****@yahoo.comwrote in message
news:11**********************@h54g2000cwb.googlegr oups.com...
>
B. Williams wrote:
>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.
Nov 15 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.