Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6080401
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T11:03:25+00:00 2026-05-23T11:03:25+00:00

I wrote a gist a while ago: https://gist.github.com/611157 . It compiled and worked ok.

  • 0

I wrote a gist a while ago: https://gist.github.com/611157. It compiled and worked ok.

I came back to it recently and it no longer complied.

I noticed it compiles with LLVM 2.0 with no problems or warnings (and then runs and works!)

With LLVM GCC 4.2 it fails to compile.
I get the following error

error: incompatible block pointer types initializing 'signed char (^)(struct objc_object *, struct NSString *)', expected 'BOOL (^)(struct objc_object *, struct objc_object *)'

I have the feeling I have a declaration missing or wrong, but I don’t know, so I thought I would ask.

Any ideas anyone?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T11:03:26+00:00Added an answer on May 23, 2026 at 11:03 am

    The problem is that your block has type:

    BOOL (^blockRelationship)(id,id)
    

    but the second parameter in both the initialisation and the parameter type in the method declaration is NSString*

    Change your block definition to

    BOOL (^blockRelationship)(id,NSString*)=^(id obj,NSString* relationship) { ... } ;
    

    I’ve tested the above in GCC 4.2, GCC 4.2 LLVM and Clang LLVM 1.6.

    With the id second parameter, in the first two cases I got your error appearing on both the initialisation line and the line where it is passed as a parameter to toDictionaryBlockingRelationships: In the Clang case I got no error at all.

    With NSString* as the second parameter, there were no errors in all three compilations.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I wrote this script https://gist.github.com/1313611 to ease my installs for rvm. The whole script
Take a look at this programming challenge. https://gist.github.com/1083219 We’ve built a new communication protocol
Here is the stack trace which appears on resque-web interface: http://gist.github.com/396893 There you can
I have managed to run a basic rails app1 on App Engine using: http://gist.github.com/268192
Wrote the following in PowersHell as a quick iTunes demonstration: $iTunes = New-Object -ComObject
Wrote a quick Java proggy to spawn 10 threads with each priority and calculate
I wrote a simple batch file as a PowerShell script, and I am getting
I wrote a windows service using VB that read some legacy data from Visual
I wrote myself a little downloading application so that I could easily grab a
I wrote a component that displays a filename, a thumbnail and has a button

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.