Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
General
GeneralPortable MacsHardwareNetworking
Applications
Mac ApplicationsEudoraFirefox / MozillaInternet ExplorerOutlook ExpressMS OfficeEntourageExcelPowerPointWordVirtual PCMedia PlayerOther MS Products
Programming
Mac ProgrammingCodeWarriorPerl
Country Specific
Australian Mac GroupUK Mac Group

Mac Forum / Programming / CodeWarrior / November 2005



Tip: Looking for answers? Try searching our database.

CW10.0 TYPE_BOOL redefined...

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
hp - 14 Nov 2005 18:15 GMT
Trying to get our new copy of CW10.0 running, and am failing on the
simplest project.

I am running in "evaluation" mode as the license issues still have not
been fleshed out; I am in the queue for that...

I dont define this anywhere myself, but here is the error that I get
from a PEF target and 1 its source file, when I simply preprocess it:

Error   : macro 'TYPE_BOOL' redefined
(included from:
 ...
(C-C++ Preprocessor Panel):4
AafiStub.cpp:1)
ConditionalMacros.h line 439        #if __option(bool)

Moreover, in a MACHO project I get a different error:

Error   : macro
'AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_1'
redefined
(included from:
...
(C-C++ Preprocessor Panel):4
AafiStub.cpp:1)
(C-C++ Preprocessor Panel) line 3   #if !__option(precompile)

Suggestions?

-harry
RonL - 15 Nov 2005 22:59 GMT
>Trying to get our new copy of CW10.0 running, and am failing on the
>simplest project.
[quoted text clipped - 11 lines]
> AafiStub.cpp:1)
>ConditionalMacros.h line 439        #if __option(bool)

Be sure you have the correct bool setting in the C/C++ settings.  but
more likely you just need to remove object code or rebuild your
precompiled header.  This is usually a precompiled header difference.

>Moreover, in a MACHO project I get a different error:
>
[quoted text clipped - 6 lines]
> AafiStub.cpp:1)
>(C-C++ Preprocessor Panel) line 3   #if !__option(precompile)

look at the line just above it,  again, it sounds like the real
headers and the precompiled headers are using the same headers.

Ron
hp - 18 Nov 2005 00:06 GMT
I've chkd the compiler bool setting, and it is asserted as it is
supposed to be.

I've recompiled all the CW libraries and precompiled headers.

1) for PEF/CFM builds I still trip on the same error "TYPE_BOOL"
redefined.

2) MachO builds have changed behavior, however. So it appears that at
least I hve changed the
  error, but I now get:

Error   : undefined identifier '_MSL_BEGIN_EXTERN_C'
cstring_mach.h line 11   _MSL_BEGIN_EXTERN_C

Error   : undefined identifier '__std'
cstring_mach.h line 14   void bcopy(const void *, void *,
__std(size_t));

Error   : declaration syntax error
cstring_mach.h line 23   __std(size_t) strlcat(char *, const char *,
__std(size_t));

etc...

I see the definition of _MSL_BEGIN_EXTERN_C in ansi_parms.h, but I do
not see a reference to
that file in the compiler Preprocess output; but it was probably in the
precomiled headers.

Nonetheless. Its broke.

Suggestions?

-harry
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.