[cfe-dev] Calling Extern Function

Eric Christopher echristo at apple.com
Thu Aug 19 02:23:13 PDT 2010


On Aug 19, 2010, at 1:23 AM, o.j.sivart at gmail.com wrote:

>> Honistly, I would of thought an example of this would be provided, it
>> must be used often.
> 
> The example you have should work, the code seems fine. The extern C should overcome any name mangling, which is why I was asking you to check what you get from listing the symbols, asking that you hadn't stripped symbols, and suggesting that if at that stage everything looks good then the only issue could be that dlopen can't see the symbols, which is why I suggested that you may been the equivalent of gcc's -rdynamic flag for your compiler.

He showed up in IRC today and we discovered that he was adding the function twice to the module.  I'm not sure what was happening, but that was the side-effect.  So he was trying to call yippe1 or something.

Paul: Did you get things working?

-eric



More information about the cfe-dev mailing list