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

  • Home
  • SEARCH
  • 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 6188727
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T02:17:11+00:00 2026-05-24T02:17:11+00:00

I compiled a static library in xcode, it contained just one .c source file:

  • 0

I compiled a static library in xcode, it contained just one .c source file:

int Get10()
{
    return 10;
}

And this is how it’s included in the .cs source file:

    [DllImport ("__Internal",EntryPoint="UIRectFrameUsingBlendMode")]
    private static extern int Get10 ();

But the return value of Get10() is ‘0’. Notice the EntryPoint is UIRectFrameUsingBlendMode, there is no reason for this, if I remove entrypoint the function Get10() is not found and an exception is thrown to that effect, though that probably has something to do with the problem. The issue is though I’m not sure what entrypoint to define as the lib is basically a single c source file with a function. I had tried using EntryPoint=”Get10″ but that resulted in:

System.EntryPointNotFoundException: Get10 at (wrapper
managed-to-native) ChicksnVixens.ChicksnVixensGame:Get10 () at
ChicksnVixens.ChicksnVixensGame..ctor () [0x000a0] in
/ChicksnVixens/ChicksnVixensGame.cs:36

The code is being compiled and run in MonoDevelop in the iPhone simulator.

Any ideas why?

  • 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-24T02:17:12+00:00Added an answer on May 24, 2026 at 2:17 am

    The EntryPoint should, if present, match the name of your native method. This is useful if you want to rename the method on the managed side (otherwise simply do not use it).

    My guess is that your library is not linked correctly or that the Get10 symbol is not visible (e.g. static in C). In such case the runtime should throw an EntryPointNotFoundException.

    Both ‘nm’ and ‘otool’ can list what’s exported from your static library (i.e. you should see Get10, otherwise it’s a build issue on your native library). See ‘man’ on both tools to get the lists.

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

Sidebar

Related Questions

I've just finished a library in Objective-C that I compiled as a Static Library
I've compiled a static library targetting 'iOS Device' in xcode and have linked it
I've got a compiled static library (with an a extension) I want to include
I'm having a binary static library libfoo.a compiled for 32 bit linux machine. I
Is it correct to link a static library (.lib) compiled with VS 2005 with
Under gcc (g++), I have compiled a static .a (call it some_static_lib.a ) library.
I have a static linkable library of C and Fortran routines compiled and linked
When I try to compile this: public static Rand searchCount (int[] x) { int
When i try to compile this: public static int compareCardhl (Card c1, Card c2)
I want to share my Xcode project as a static library for other people

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.