Sign in to follow this  
ari556655

Loading C functions?

Recommended Posts

ari556655    155
Without using a scripting language, is it possible to save a c function as a binary file, and then to load it into your program ? And if this is not possible, then what's the next closest thing to it?

Share this post


Link to post
Share on other sites
demonkoryu    980
You would create a shared library (a.k.a. .dll in Windows/.so in *nix/.dylib in MacOSX).
From what language do you want to call the C functions?

Share this post


Link to post
Share on other sites
ari556655    155
I'm writing an opengl gui, and rather than just being able to include the guilib in a project, I'd like to be able to save a program using the guilib as a binary file, and then load and execute the binary from within the gui program itself, if that makes sense.

So I'd like to be able to open the gui program, and then load and run binaries(that work seamlessly with the gui) from within this gui program.


I'd be calling the functions from c, and am using OS X.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this