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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T16:19:40+00:00 2026-06-02T16:19:40+00:00

Hoi, I have a dynamic library loader, which is written in C++ but provides

  • 0

Hoi,

I have a dynamic library loader, which is written in C++ but provides a C-compatible API.

That loader can load modules, which are written in any programming language. They’re arranged in a named list and can request function pointers of other modules. Now, a module written in C and compiled with a C compiler gets the functions pointers of any other module, which is written and compiled in C++.

So my question: Are function-pointers cross-compiler valid? I think I heard of something like __cdecl once, long time ago. I use Linux 64bit.

T.I.A.

  • 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-02T16:19:41+00:00Added an answer on June 2, 2026 at 4:19 pm
    // my C++ code ...
    extern "C" {
      void thisFunctionWillBeCallableFromC();
    }
    
    void butThisOneMayNot();
    
    struct S
    {
        void thisDefinitelyWontBeCallableFromC(std::map<int, S>);
    };
    

    C++ code should declare interfaces with extern "C" linkage to be callable from C.

    Or do you mean C++ code generated by different compilers?

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

Sidebar

Related Questions

I'm working on a translation function that should work like this: _('{en:}hello{nl:}hoi') But I'm
Hoi! I have a form I wish to submit, but I need to add
Hoi. I love Eclipse. But i hate that huge square annotation on the left,
Say I have html similar to the following <ul> <li> hi </li> <li> hoi
I used file_get_contents, curl, simple html dom but can not get HTML from this
Hoi, for example, i have a xml file : <bookstore> <book category=COOKING> <title lang=en>Everyday
Hoi. I am working on an experiment allowing users to use 1% of my
I have a red box called mc1_mc and every time when you drag on
I have two tables: Companies: (id, name, city) Workers: (id, name) I would like
Ah-hoi, hoi, I'm wondering if it's ok to do something like the following: class

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.