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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T13:54:06+00:00 2026-05-28T13:54:06+00:00

After following instructions on the emscripten wiki I have managed to compile a small

  • 0

After following instructions on the emscripten wiki I have managed to compile a small C library. This resulted in an a.out.js file.

I was assuming that to use functions from this library (within node.js) something like this would have worked:

var lib = require("./a.out.js");
lib.myFunction('test');

However this fails. Can anyone help or point me to some basic tutorial related to this?

  • 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-28T13:54:07+00:00Added an answer on May 28, 2026 at 1:54 pm

    The problem here is that your a.out.js file is going to look like this

    function myFunction() {
      ...
    }
    

    Not like this

    function myFunction() {
      ...
    }
    
    exports.myFunction = myFunction;
    

    You need to write a build script that lists the tokens you want to publically export from each C program and appends exports.<token> = <token>;\n to the end of your file for each token.

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

Sidebar

Related Questions

After following all the instructions on http://three20.info/setup/existing to integrate three20 library into my project.
After following instructions from orbeons wiki From: http://wiki.orbeon.com/forms/doc/user-guide/form-builder-user-guide#TOC-Creating-a-PDF-template-for-use-wit Non-exclusive checkboxes Use PDF checkboxes Use
After finding this question and following the instructions there, plus following many of the
After following the advice in this question successfully, I added a couple additional lines
After following the great advice given in a thread about service beans I have
Similar to this question , after running the following code the browser dialog does
I am trying to figure out how to do the following: 1) After a
After pulling down a module from GitHub and following the instructions to build it,
I have been following the RestKit installation instructions but I now have an error
I'm trying the sample demo of selenium flex API . After following the instructions

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.