I'm not sure what I am trying to do is possible. I'm trying to create
two modules, and call a function in one module from another module.
First, a reassurance that I'm not trying to do something completely
off the wall would be nice as I don't see any tutorials that do this.
Second, any help getting this to work would be wonderful. Thanks,
In my code, you'll see that I have two functions, both of which return
an int and take no parameters. I can call the "utility function" with
no problem--I get back the desired answer "42" and print it to the
screen. When I try to call that function however, the function cannot
be resolved. I'm trying to resolve it by calling it "Utility
Function" in both the prototype and the actual definition. I can't
use llvm::Function pointers in my real code because the "Utility
Module" will be generated after the "Main Module", so I can't have
pointers to the utility functions. Here's the code: