[cfe-dev] Call external (non-JIT) function from JIT
eli.friedman at gmail.com
Tue Jul 13 13:17:00 PDT 2010
On Tue, Jul 13, 2010 at 12:46 PM, Frank Fuchs <fk.fuchs at googlemail.com> wrote:
> Here's the error message:
> main.cpp:5:4: error: use of undeclared identifier 'known'
> 1 error generated.
Right... the frontend has no clue what mapping you're doing in the backend.
> also defining "known" as: extern "C" int known(int); does not solve the issue, the error is then:
> LLVM ERROR: Program used external function 'known' which could not be resolved!
I have a feeling you're not actually adding a mapping for "known"; try
dumping the module.
More information about the cfe-dev