943,769 Members | Top Members by Rank

Ad:
  • C++ Discussion Thread
  • Unsolved
  • Views: 843
  • C++ RSS
You are currently viewing page 1 of this multi-page discussion thread
Feb 1st, 2009
0

c++ problem

Expand Post »
hello i wrote a c++ program, and i wanted to send it to my friends, but everytime i send the exe file to them, they tell me they get the error: "The application has failed to start because the application configuration is incorrect". I tried to put it on rapidshare, and i downloaded it to my computer, it ran. So i did a little research, and i dont really understand. is it because my friends have vista, or do i have to link staticaly (which idk how to do). Anyways the question is, how can i send the exe of a c++ to someone without sending them the code itself and then them compiling it. Thanks for any help.
Similar Threads
Reputation Points: -1
Solved Threads: 0
Newbie Poster
aburich_44 is offline Offline
10 posts
since Feb 2007
Feb 1st, 2009
0

Re: c++ problem

static libraries go to Properties - Configuration Properties - C/C++ - Code Generation - Runtime Library and select either "Multi-threaded (/MT)" or "Multi-threaded Debug (/MTd). Otherwise, you'll have to distribute the runtimes with it.
Team Colleague
Reputation Points: 361
Solved Threads: 214
Taboo Programmer
Comatose is offline Offline
2,413 posts
since Dec 2004
Feb 1st, 2009
0

Re: c++ problem

thanks for that. I am using c++ express edition, cant seem to find properties.
Reputation Points: -1
Solved Threads: 0
Newbie Poster
aburich_44 is offline Offline
10 posts
since Feb 2007
Feb 1st, 2009
0

Re: c++ problem

ouch. I think express edition doesn't have the ability to statically link to libraries

You will need to ship the libraries with your app. Check This Link, and hopefully you can get it to work that way. But personal suggestion: get a better compiler
Team Colleague
Reputation Points: 361
Solved Threads: 214
Taboo Programmer
Comatose is offline Offline
2,413 posts
since Dec 2004
Feb 1st, 2009
0

Re: c++ problem

thank you. Do you think that c++ regular edition lets me do that?
Reputation Points: -1
Solved Threads: 0
Newbie Poster
aburich_44 is offline Offline
10 posts
since Feb 2007
Feb 1st, 2009
0

Re: c++ problem

I personally would suggest using an IDE that's free and fully functional such as Code::Blocks which has a rich set of Features, a pretty good FAQ, and a forum. Personally, I'd download the version that comes with mingw (second link under windows).
Last edited by Comatose; Feb 1st, 2009 at 12:22 pm.
Team Colleague
Reputation Points: 361
Solved Threads: 214
Taboo Programmer
Comatose is offline Offline
2,413 posts
since Dec 2004
Feb 1st, 2009
1

Re: c++ problem

You can do it in express. Right click your .cpp file and then properties. Works for me at least.
Reputation Points: 21
Solved Threads: 12
Junior Poster in Training
MatEpp is offline Offline
79 posts
since Jan 2009
Feb 1st, 2009
0

Re: c++ problem

ok after i download it do i have to change my code at all, like the include statements, or will it just work if i paste the code in codeblocks? thanks for ur help..
Reputation Points: -1
Solved Threads: 0
Newbie Poster
aburich_44 is offline Offline
10 posts
since Feb 2007
Feb 1st, 2009
0

Re: c++ problem

You should be able to simply paste the code... though it would be interesting to know if MatEpp's suggestion works in your copy of Express.
Team Colleague
Reputation Points: 361
Solved Threads: 214
Taboo Programmer
Comatose is offline Offline
2,413 posts
since Dec 2004
Feb 1st, 2009
0

Re: c++ problem

i dont think so. i mean i right clicked it, then i clicked properties, and i didnt find anything about Runtime Library or "Multi-threaded (/MT)" or "Multi-threaded Debug (/MTd)... its just like a regular files properties. anyways that program blocks watever, i cant find the MT thing
Reputation Points: -1
Solved Threads: 0
Newbie Poster
aburich_44 is offline Offline
10 posts
since Feb 2007

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C++ Forum Timeline: QuickSort: Templated using function pointers
Next Thread in C++ Forum Timeline: why an empty Structure..........





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC