 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Kathleen Guest
|
Posted: Mon May 14, 2007 7:53 pm Post subject: BDS2006 command line does not show data alignment or enum si |
|
|
Craig Farrell recommended to me (and, in searching Googled messages, I
see he makes this same recommendation to others) that I turn on Show
Command Line in my environment options, and then verify the -a (data
alignment) and -b (enum size) options for my project.
My command line OMITS the -a8 and -b settings, although they are
selected in the Project Options dialog.
The -b option (Enums always integer sized), in particular, is needed for
my project to use Codebase (Sequiter), so I am particularly concerned
that it does not show in the command line.
I am running with Update 2 (dated April 8, 2006).
Does anybody know why my command line would omit the -a and -b options?
Thanks,
Kathleen |
|
| Back to top |
|
 |
dhoke Guest
|
Posted: Mon May 14, 2007 9:27 pm Post subject: Re: BDS2006 command line does not show data alignment or enu |
|
|
Are you looking at an individual configuration (release or debug or ?) vs
the All configurations, and perhaps they're set/unset differently in the
individual area that is "current"ly selected, vs the (your) view(ing) of
"All"?
"Kathleen" <KathleenDELETEb (AT) askDELETEcnet (DOT) org> wrote in message
news:464877ea$1 (AT) newsgroups (DOT) borland.com...
| Quote: | Craig Farrell recommended to me (and, in searching Googled messages, I see
he makes this same recommendation to others) that I turn on Show Command
Line in my environment options, and then verify the -a (data alignment)
and -b (enum size) options for my project.
My command line OMITS the -a8 and -b settings, although they are selected
in the Project Options dialog.
The -b option (Enums always integer sized), in particular, is needed for
my project to use Codebase (Sequiter), so I am particularly concerned that
it does not show in the command line.
I am running with Update 2 (dated April 8, 2006).
Does anybody know why my command line would omit the -a and -b options?
Thanks,
Kathleen |
|
|
| Back to top |
|
 |
Kathleen Guest
|
Posted: Mon May 14, 2007 10:01 pm Post subject: Re: BDS2006 command line does not show data alignment or enu |
|
|
dhoke wrote:
| Quote: | Are you looking at an individual configuration (release or debug or ?) vs
the All configurations, and perhaps they're set/unset differently in the
individual area that is "current"ly selected, vs the (your) view(ing) of
"All"?
|
Viewing All, Release and Debug configurations, Data Alignment is set to
8 Byte (-a , and Enums always integer sized is checked (-b).
I have been setting my options with All Configurations selected.
I take it you are telling me that YOUR command line (both the one you
see when you are in Project Options | Command Line, and the one you see
when you check Tools | Options | Environment Options | Show command
line, and compile a unit) display values for -a and (if you select it)
-b, is that correct?
BTW, I mentioned this in another thread, but didn't in this one: If I
select a data alignment OTHER THAN 8-byte, -a turns up in my command
line. When I set it back to 8-byte, it disappears again.
This is happening in all of my projects. It is making me crazy.
Kathleen |
|
| Back to top |
|
 |
Jonathan Benedicto Guest
|
Posted: Mon May 14, 2007 10:22 pm Post subject: Re: BDS2006 command line does not show data alignment or enu |
|
|
Kathleen wrote:
| Quote: | Does anybody know why my command line would omit the -a and -b options?
|
IIRC, those options are on by default in the compiler, so unless you
explicitly turn them off, the IDE does not include them in the command-line.
HTH
Jon |
|
| Back to top |
|
 |
Craig Farrell Guest
|
Posted: Mon May 14, 2007 11:07 pm Post subject: Re: BDS2006 command line does not show data alignment or enu |
|
|
Hi again,
| Quote: | select a data alignment OTHER THAN 8-byte, -a turns up in my command
line. When I set it back to 8-byte, it disappears again.
|
Sorry for being unclear. If it is a default setting it may
not show. Use bcc33.exe -h to show the help screen for the
command line switches in a command prompt. Use this to determine
when an option is the default. It sounds like everything is working
right when -a8 disappears because that is bcc32.exe's default.
--Craig |
|
| Back to top |
|
 |
Kathleen Guest
|
Posted: Tue May 15, 2007 1:31 am Post subject: Re: BDS2006 command line does not show data alignment or enu |
|
|
Craig Farrell wrote:
| Quote: | Hi again,
Sorry for being unclear. If it is a default setting it may
not show. Use bcc33.exe -h to show the help screen for the
command line switches in a command prompt. Use this to determine
when an option is the default. It sounds like everything is working
right when -a8 disappears because that is bcc32.exe's default.
--Craig
|
Hi Craig,
Well, I'm just getting more and more confused, particularly with regard
to the default for enum size.
When I look at my Default Project Settings (no project open), "Enums
always integer sized" is UNCHECKED (off). It appears in the command line
as "-b-". But the help for bcc32.exe says the default is "* -b Make
enums integer-sized (-b- makes them short as possible)". The asterisk
indicates that ON is the default setting.
Does it make sense that the default would be ON? That wasn't the case in
BCB6.
If the default is ON, then why is my Default Project Options panel
showing it defaulted to OFF (unchecked)? I suppose it is possible that I
overrode the shipping default somewhere along the way, but I really
don't think I did.
And, not for nothin', the default for Standard Stack Frames is ON (-k),
yet it shows up in the command line.
I'm not doubting you that defaults are suppressed from view, but this
policy is applied inconsistently, and isn't this sort of analysis hard
enough without playing a shell game?
Thank you for helping.
Kathleen |
|
| Back to top |
|
 |
Craig Farrell Guest
|
Posted: Tue May 15, 2007 1:58 am Post subject: Re: BDS2006 command line does not show data alignment or enu |
|
|
Hi,
| Quote: |
When I look at my Default Project Settings (no project open), "Enums
always integer sized" is UNCHECKED (off).
|
The BDS implementation of default projects is very bad, IMO.
The interface you see in Project Options | Default Options
in showing you, not the default defaults, but is to allow
you to create some defaults, so if you click OK in that
Project Options dialog while the "default" checkbox is
ON, it applies your customizations to this file
c:\documents and settings\<username>\local settings\application
data\borland\bds\4.0\DefProject.bdsproj
....which is then used in all susbsequent new projects.
| Quote: | as "-b-". But the help for bcc32.exe says the default is "* -b Make
enums integer-sized (-b- makes them short as possible)". The asterisk
indicates that ON is the default setting.
|
ON is the default for the command line but not default
projects which is why -b- shows in the IDE command line.
| Quote: | Does it make sense that the default would be ON? That wasn't the case in
BCB6.
|
The important thing is what that the command lines are the
same in your BCB6 project that works and your BDS project.
If they are different in that one is missing, then it is OK
if the missing switch is the bcc32.exe default. I agreee
that this is confusing, sorry!
| Quote: | And, not for nothin', the default for Standard Stack Frames is ON (-k),
yet it shows up in the command line.
Yes, that is an inconsistency I did not notice. The IDE should pass |
them all IMO, default of not.
--Craig |
|
| Back to top |
|
 |
Kathleen Guest
|
Posted: Tue May 15, 2007 2:00 am Post subject: Re: BDS2006 command line does not show data alignment or enu |
|
|
Craig Farrell wrote:
| Quote: | The important thing is what that the command lines are the
same in your BCB6 project that works and your BDS project.
If they are different in that one is missing, then it is OK
if the missing switch is the bcc32.exe default. I agreee
that this is confusing, sorry!
|
With what I have learned from you, my settings in the two projects agree.
I have just got off the phone with Sequiter, and they have sent me their
project make files for Codebase for C++ Builder. I'm going to try to
rebuild the library using BDS2006, and see if that makes the difference.
Thank you again for all of your help and patient explanations!
Kathleen |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|