c++ problem

Please support our C++ advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Feb 2007
Posts: 8
Reputation: aburich_44 has a little shameless behaviour in the past 
Solved Threads: 0
aburich_44 aburich_44 is offline Offline
Newbie Poster

c++ problem

 
0
  #1
Feb 1st, 2009
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.
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 2,413
Reputation: Comatose is a jewel in the rough Comatose is a jewel in the rough Comatose is a jewel in the rough Comatose is a jewel in the rough 
Solved Threads: 211
Team Colleague
Comatose's Avatar
Comatose Comatose is offline Offline
Taboo Programmer

Re: c++ problem

 
0
  #2
Feb 1st, 2009
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.
Reply With Quote Quick reply to this message  
Join Date: Feb 2007
Posts: 8
Reputation: aburich_44 has a little shameless behaviour in the past 
Solved Threads: 0
aburich_44 aburich_44 is offline Offline
Newbie Poster

Re: c++ problem

 
0
  #3
Feb 1st, 2009
thanks for that. I am using c++ express edition, cant seem to find properties.
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 2,413
Reputation: Comatose is a jewel in the rough Comatose is a jewel in the rough Comatose is a jewel in the rough Comatose is a jewel in the rough 
Solved Threads: 211
Team Colleague
Comatose's Avatar
Comatose Comatose is offline Offline
Taboo Programmer

Re: c++ problem

 
0
  #4
Feb 1st, 2009
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
Reply With Quote Quick reply to this message  
Join Date: Feb 2007
Posts: 8
Reputation: aburich_44 has a little shameless behaviour in the past 
Solved Threads: 0
aburich_44 aburich_44 is offline Offline
Newbie Poster

Re: c++ problem

 
0
  #5
Feb 1st, 2009
thank you. Do you think that c++ regular edition lets me do that?
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 2,413
Reputation: Comatose is a jewel in the rough Comatose is a jewel in the rough Comatose is a jewel in the rough Comatose is a jewel in the rough 
Solved Threads: 211
Team Colleague
Comatose's Avatar
Comatose Comatose is offline Offline
Taboo Programmer

Re: c++ problem

 
0
  #6
Feb 1st, 2009
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.
Reply With Quote Quick reply to this message  
Join Date: Jan 2009
Posts: 79
Reputation: MatEpp is an unknown quantity at this point 
Solved Threads: 12
MatEpp MatEpp is offline Offline
Junior Poster in Training

Re: c++ problem

 
1
  #7
Feb 1st, 2009
You can do it in express. Right click your .cpp file and then properties. Works for me at least.
Reply With Quote Quick reply to this message  
Join Date: Feb 2007
Posts: 8
Reputation: aburich_44 has a little shameless behaviour in the past 
Solved Threads: 0
aburich_44 aburich_44 is offline Offline
Newbie Poster

Re: c++ problem

 
0
  #8
Feb 1st, 2009
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..
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 2,413
Reputation: Comatose is a jewel in the rough Comatose is a jewel in the rough Comatose is a jewel in the rough Comatose is a jewel in the rough 
Solved Threads: 211
Team Colleague
Comatose's Avatar
Comatose Comatose is offline Offline
Taboo Programmer

Re: c++ problem

 
0
  #9
Feb 1st, 2009
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.
Reply With Quote Quick reply to this message  
Join Date: Feb 2007
Posts: 8
Reputation: aburich_44 has a little shameless behaviour in the past 
Solved Threads: 0
aburich_44 aburich_44 is offline Offline
Newbie Poster

Re: c++ problem

 
0
  #10
Feb 1st, 2009
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
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the C++ Forum


Views: 630 | Replies: 14
Thread Tools Search this Thread



Tag cloud for C++
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC