Go to Post How come so many engineering types don't understand sarcasm? :) - IndySam [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 18-04-2011, 13:14
bassoondude bassoondude is offline
1293 Awards and Rules Captain
AKA: Miller
FRC #1293 (D5 Robotics)
Team Role: Leadership
 
Join Date: Jan 2010
Rookie Year: 2010
Location: Irmo, SC
Posts: 51
bassoondude is a splendid one to beholdbassoondude is a splendid one to beholdbassoondude is a splendid one to beholdbassoondude is a splendid one to beholdbassoondude is a splendid one to beholdbassoondude is a splendid one to beholdbassoondude is a splendid one to behold
Running a Console Application Without a Compiler

This isn't specifically WindRiver related, but it is about C++. I have just recently started learning C++, and I have written a console application I would like to show someone else on their computer, but they don't have a Compiler on their computer. Is it possible to run the application without a compiler? And if so, how?
__________________
2011 Palmetto Regional: Semi-Finalists
2010 Palmetto Regional: Semi-Finalists
2009 Palmetto Regional: Quaterfinalists
Reply With Quote
  #2   Spotlight this post!  
Unread 18-04-2011, 13:22
Bongle's Avatar
Bongle Bongle is offline
Registered User
FRC #2702 (REBotics)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2002
Location: Waterloo
Posts: 1,069
Bongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond repute
Send a message via MSN to Bongle
Re: Running a Console Application Without a Compiler

[assuming this is windows]
If you read the build log that your compiler IDE outputs when you compile, it should point you towards a .exe file.

On my PC with Visual Studio 2008, it is:
<my documents>/visual studio 2008/projects/<project name>/debug/<project name>.exe.

You may be able to take that and run it on their computer. First thing to try would be to move it to another directory and run it directly from windows explorer.

There are a bunch of things I can think of that may go wrong, but a simple console app should be fine.
Reply With Quote
  #3   Spotlight this post!  
Unread 18-04-2011, 14:31
bassoondude bassoondude is offline
1293 Awards and Rules Captain
AKA: Miller
FRC #1293 (D5 Robotics)
Team Role: Leadership
 
Join Date: Jan 2010
Rookie Year: 2010
Location: Irmo, SC
Posts: 51
bassoondude is a splendid one to beholdbassoondude is a splendid one to beholdbassoondude is a splendid one to beholdbassoondude is a splendid one to beholdbassoondude is a splendid one to beholdbassoondude is a splendid one to beholdbassoondude is a splendid one to behold
Re: Running a Console Application Without a Compiler

Thanks, I think that is going to work. Now I need to figure out how to get the .exe file onto my flash drive.
__________________
2011 Palmetto Regional: Semi-Finalists
2010 Palmetto Regional: Semi-Finalists
2009 Palmetto Regional: Quaterfinalists
Reply With Quote
  #4   Spotlight this post!  
Unread 18-04-2011, 18:36
mikets's Avatar
mikets mikets is offline
Software Engineer
FRC #0492 (Titan Robotics)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2008
Location: Bellevue, WA
Posts: 671
mikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of light
Re: Running a Console Application Without a Compiler

Can't you just locate the .exe file as Bongle said and then drag the file to your flash drive folder?
__________________
Reply With Quote
  #5   Spotlight this post!  
Unread 18-04-2011, 21:19
bassoondude bassoondude is offline
1293 Awards and Rules Captain
AKA: Miller
FRC #1293 (D5 Robotics)
Team Role: Leadership
 
Join Date: Jan 2010
Rookie Year: 2010
Location: Irmo, SC
Posts: 51
bassoondude is a splendid one to beholdbassoondude is a splendid one to beholdbassoondude is a splendid one to beholdbassoondude is a splendid one to beholdbassoondude is a splendid one to beholdbassoondude is a splendid one to beholdbassoondude is a splendid one to behold
Re: Running a Console Application Without a Compiler

I found 3 different .exe files, none of which would run when i tried to open them. They were in a file named debug inside the overall program file. When I tried to find the .exe file the compiler gave me using windows explorer, all it did was run the program.
__________________
2011 Palmetto Regional: Semi-Finalists
2010 Palmetto Regional: Semi-Finalists
2009 Palmetto Regional: Quaterfinalists
Reply With Quote
  #6   Spotlight this post!  
Unread 18-04-2011, 21:24
mikets's Avatar
mikets mikets is offline
Software Engineer
FRC #0492 (Titan Robotics)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2008
Location: Bellevue, WA
Posts: 671
mikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of light
Re: Running a Console Application Without a Compiler

What are the names of the 3 exes? It should be pretty obvious which one you need because it should be named after your project. If I created a project named "MyConsoleApp", then it should compile a "MyConsoleApp.exe".
__________________
Reply With Quote
  #7   Spotlight this post!  
Unread 20-04-2011, 12:33
bassoondude bassoondude is offline
1293 Awards and Rules Captain
AKA: Miller
FRC #1293 (D5 Robotics)
Team Role: Leadership
 
Join Date: Jan 2010
Rookie Year: 2010
Location: Irmo, SC
Posts: 51
bassoondude is a splendid one to beholdbassoondude is a splendid one to beholdbassoondude is a splendid one to beholdbassoondude is a splendid one to beholdbassoondude is a splendid one to beholdbassoondude is a splendid one to beholdbassoondude is a splendid one to behold
Re: Running a Console Application Without a Compiler

I think I just figured it out, thanks for the help.
__________________
2011 Palmetto Regional: Semi-Finalists
2010 Palmetto Regional: Semi-Finalists
2009 Palmetto Regional: Quaterfinalists
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 03:07.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi