0

I made an app in which there is some Objective C++ files with extensions .mm and some Objective C files with extension .m.

My app runs fine until I need to add Philips HUE SDK.

When I downloaded the project I got two things: 1. HUE SDK 2. Lumberjack Folder

When I add Lumberjack folder in my app and build my project then I get errors in each and every .m files of Lumberjack.

Error I am getting:

Assigning to 'void *' from incompatible type 'const char[1]'

I tried to change the compiler as ObjectiveC and According to file type.

But still I got Error.

I also tried to add -fno-objc-arc in Lumberjack files but it also doesn't work.

Is their any way by which I can add HUE SDK in my project. I am searching for solution from long time.

EDIT

when i remove lumberjack folder i am getting this error in HUE SDK FILES

enter image description here

6
  • If you don't need Lumberjack logging delete it and usage of it from your project and from Philips HUE SDK code. Commented Jun 29, 2015 at 11:09
  • i didnt get you...when i remove i get error in HUE SDK files Commented Jun 29, 2015 at 11:10
  • I searched in all the files but i havent found any use of these so i removed..but now i am getting error in HUE files Commented Jun 29, 2015 at 11:35
  • you seem to be missing PHSimpleRuleCondition.h. Commented Jun 29, 2015 at 12:03
  • Let us continue this discussion in chat. Commented Jun 29, 2015 at 12:10

1 Answer 1

2

You are apparently mixing Objective-C and Objective-C++. In C++ and Objective-C++, there is no automatic conversion from arbitrary pointer types to void*. THAT is your problem.

Removing ARC seems to fall into the category of "experimental programming". Make arbitrary, unmotivated changes to your code and hope it helps. What made you think that removing ARC would affect your code in any way?

Here's what you need to do: Find out where the "void*" and the "const char [1]" are coming from and either change one of them, or add casts to void* in your code.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.