Forum Jump

Select Group :
Select Forum :
Sorted By :
Sort Order :
From The :
 
Thread Tools  Search this thread 
af123_af007
Total Points:
130
Status Points:
80
Green Belt
October 10, 2008 4:37 PM PDT
Compile a file including Carbon.h and icpc version 10.1 20080801 failed

Hello, I will compile source code which include the header Carbon.h with the intel c++ compiler version 10.1 20080801 on Mac OS X 10.5.5.

The following  errors occurred:

icpc test.cpp 

/System/Library/Frameworks/CoreServices.framework/Frameworks/CFNetwork.framework/Headers/CFNetworkErrors.h(53): error: expected a ";"

  CFN_EXPORT const CFStringRef kCFErrorDomainCFNetwork                     __OSX_AVAILABLE_STARTING(__MAC_10_5,__IPHONE_1_2);

                                                                           ^

 

/System/Library/Frameworks/CoreServices.framework/Frameworks/CFNetwork.framework/Headers/CFNetworkErrors.h(67): error: expected a ";"

  CFN_EXPORT const CFStringRef kCFErrorDomainWinSock                       __OSX_AVAILABLE_STARTING(__MAC_10_5,__IPHONE_1_2);

                                                                           ^

 

/System/Library/Frameworks/CoreServices.framework/Frameworks/CFNetwork.framework/Headers/CFNetworkErrors.h(131): error: expected a ";"

  CFN_EXPORT const CFStringRef kCFGetAddrInfoFailureKey                    __OSX_AVAILABLE_STARTING(__MAC_10_5,__IPHONE_1_2);

                                                                           ^

 

/System/Library/Frameworks/CoreServices.framework/Frameworks/CFNetwork.framework/Headers/CFNetworkErrors.h(145): error: expected a ";"

  CFN_EXPORT const CFStringRef kCFSOCKSStatusCodeKey                       __OSX_AVAILABLE_STARTING(__MAC_10_5,__IPHONE_1_2);

 

The g++ version 4.0.1 works fine. 

Please Can you help me!

drd
Total Points:
360
Status Points:
310
Green Belt
October 13, 2008 5:42 PM PDT
Rate
 
#1

try defining:

__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__=1040

(or whatever versio you support)

 

I have no idea whether this is a bug, or we all just missed some floating blurb in the ocean of docs...  if the latter is true, well, I suggest we also refrain from bobbing for apples come Halloween :P  I think the success rate is approximately the same.





Intel Software Network Forums Statistics

6668 users have contributed to 28284 threads and 87461 posts to date.
In the past 24 hours, we have 6 new thread(s) 35 new posts(s), and 50 new user(s).

In the past 3 days, the most popular thread for everyone has been Fortran and Matlab The most posts were made to Larger Test Data The post with the most views is Quoting - nabeels Hello e

Please welcome our newest member karolbe