You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Shazron Abdullah (JIRA)" <ji...@apache.org> on 2013/04/11 22:01:16 UTC
[jira] [Commented] (CB-3021) Can no longer import CDVPlugin.h from
plugin Objective-C++ code
[ https://issues.apache.org/jira/browse/CB-3021?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13629282#comment-13629282 ]
Shazron Abdullah commented on CB-3021:
--------------------------------------
These lines need to have an 'extern' prefix:
https://github.com/apache/cordova-ios/blob/709d6078693956e7514c8f21d8b8b77f72edcd6b/CordovaLib/Classes/CDVPlugin.h#L26-L29
> Can no longer import CDVPlugin.h from plugin Objective-C++ code
> ---------------------------------------------------------------
>
> Key: CB-3021
> URL: https://issues.apache.org/jira/browse/CB-3021
> Project: Apache Cordova
> Issue Type: Bug
> Components: iOS
> Affects Versions: 2.6.0
> Environment: XCode 4.6.1
> OSX 10.8.3
> Reporter: Ryan Willoughby
> Assignee: Shazron Abdullah
> Labels: C++, Plugins, iOS
> Fix For: 2.7.0
>
>
> As of 2.6.0, importing CDVPlugin.h from C++ source code results in compile errors:
> /CordovaLib/Classes/CDVPlugin.h:26:17: Default initialization of an object of const type 'NSString *const'
> /CordovaLib/Classes/CDVPlugin.h:27:17: Default initialization of an object of const type 'NSString *const'
> /CordovaLib/Classes/CDVPlugin.h:28:17: Default initialization of an object of const type 'NSString *const'
> /CordovaLib/Classes/CDVPlugin.h:29:17: Default initialization of an object of const type 'NSString *const'
> Install this plugin in a Cordova 2.6.0 project to reproduce:
> https://github.com/wildabeast/BarcodeScanner
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira