| View previous topic :: View next topic |
| Author |
Message |
Mark Mussetter Guest
|
Posted: Mon Sep 19, 2005 5:01 pm Post subject: specify executable name |
|
|
If I have a project named Test.bpr, is there a way that I could specify
the name of the executable that gets built?
Could I name it MyTestExecutable.exe, for example?
Is there something similar to the command line argument that you can use
with bcc (bcc ... -o filename)?
|
|
| Back to top |
|
 |
Remy Lebeau (TeamB) Guest
|
Posted: Mon Sep 19, 2005 5:18 pm Post subject: Re: specify executable name |
|
|
"Mark Mussetter" <mark (AT) link-comm (DOT) com> wrote
| Quote: | If I have a project named Test.bpr, is there a way that I
could specify the name of the executable that gets built?
|
Starting in BCB5, the executable filename is stored in the bpr file. You
can try using an extenal text editor to change the executable filename
namually. I do not know if it will actually work, though. The executable
filename is based on the project name, so it may cause problems for the IDE
if the two do not match.
Why not just rename the file after it is built?
Gambit
|
|
| Back to top |
|
 |
Jonathan Benedicto Guest
|
Posted: Mon Sep 19, 2005 5:57 pm Post subject: Re: specify executable name |
|
|
"Mark Mussetter" <mark (AT) link-comm (DOT) com> wrote
| Quote: | If I have a project named Test.bpr, is there a way that I could specify
the name of the executable that gets built?
Could I name it MyTestExecutable.exe, for example?
Is there something similar to the command line argument that you can use
with bcc (bcc ... -o filename)?
|
Are you compiling from the command line ?
Jonathan
|
|
| Back to top |
|
 |
Mark Mussetter Guest
|
Posted: Mon Sep 19, 2005 7:31 pm Post subject: Re: specify executable name |
|
|
Remy Lebeau (TeamB) wrote:
| Quote: |
Starting in BCB5, the executable filename is stored in the bpr file. You
can try using an extenal text editor to change the executable filename
namually. I do not know if it will actually work, though. The executable
filename is based on the project name, so it may cause problems for the IDE
if the two do not match.
|
Ahhh...thanks for the tip. I'll give it a try.
| Quote: |
Why not just rename the file after it is built?
|
I suppose I could do that just as easily.
Thanks for the help,
Mark
|
|
| Back to top |
|
 |
Mark Mussetter Guest
|
Posted: Mon Sep 19, 2005 7:33 pm Post subject: Re: specify executable name |
|
|
Jonathan Benedicto wrote:
| Quote: |
Are you compiling from the command line ?
|
No, I'm compiling from within the IDE with Ctrl-F9. I was just
referring to the command line "-o" argument to try to explain what I
wanted to do with the executable name.
Mark
|
|
| Back to top |
|
 |
Jonathan Benedicto Guest
|
Posted: Mon Sep 19, 2005 10:43 pm Post subject: Re: specify executable name |
|
|
"Mark Mussetter" <mark (AT) link-comm (DOT) com> wrote
| Quote: | No, I'm compiling from within the IDE with Ctrl-F9. I was just referring
to the command line "-o" argument to try to explain what I wanted to do
with the executable name.
|
OK. Because if you were compiling from the command line, I think that you'd
just have to invoke the compiler like this:
make -DPROJECT="MyTestExecutable.exe" -f Test.mak
to get it to change the filename.
Jonathan
|
|
| Back to top |
|
 |
Mark Mussetter Guest
|
Posted: Tue Sep 20, 2005 2:25 pm Post subject: Re: specify executable name |
|
|
Jonathan Benedicto wrote:
| Quote: |
OK. Because if you were compiling from the command line, I think that you'd
just have to invoke the compiler like this:
make -DPROJECT="MyTestExecutable.exe" -f Test.mak
to get it to change the filename.
Jonathan
|
Thank you for that information. It will come in handy if I ever need to
compile via command line.
Thanks,
Mark
|
|
| Back to top |
|
 |
|