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 9015105
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T03:40:06+00:00 2026-06-16T03:40:06+00:00

I thought to know how to declare functions inside .m files, but here I

  • 0

I thought to know how to declare functions inside .m files, but here I get a linker error.I declare this in the .h file:

#import <Foundation/Foundation.h>
// Other rimports

void SQLite3HelperHandle(NSError* error);

@interface SQLite3Helper : NSObject

// Method signatures

@end

Then in the .m file:

#import "SQLite3Helper.h"

void SQLite3HelperHandle(NSError* error)
{
    // Method body
}

@implementation SQLite3Helper

// Methods implementation

@end

But I get a linker error.And the error has a lot of unreadable information.The only relevant thing is:

“_SQLite3HelperHandleError”, referenced from:

Also, how do I declare it inline? I tried declaring it this way in the header:

extern inline void SQLite3HelperHandle(NSError* error);

And normally in the .m file:

void SQLite3HelperHandle(NSError* error);

I also tried other ways to do it, but never found the way to silent that linker error.
It should be as fast as a macro, but the function it too long to write and I prefer type checking so that’s why I need an inline function.

  • 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-06-16T03:40:07+00:00Added an answer on June 16, 2026 at 3:40 am

    It sounds like the .m file needs to be included in the target you’re building.

    I use FOUNDATION_EXPORT void ... in the .h and just what you have in the .m file.

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

Sidebar

Related Questions

I know the how to show th image on jsp file. But never thought
I know this is a simple question, but I thought I'd give it a
I think I already know the answer to this but thought I would ask
I've thought of some less than elegant ways to solve this, but I know
I know this might sound easy. I thought about using the first dot(.) which
I know .net supports base64 encoding of byte arrays. But i thought that i
So I know there is a few templating engines out there, but I thought
I don't claim to know anything about svn, but I thought I understood how
Please note that this is just a thought experiment. I know global (static) vars
I know what is going on, but I don't know how to fix this:

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.