tinycc-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Tinycc-devel] How to use tcc_add_symbol?


From: Steven G. Messervey
Subject: Re: [Tinycc-devel] How to use tcc_add_symbol?
Date: Mon, 21 Dec 2015 13:14:33 -0500


>From: address@hidden [mailto:address@hidden On Behalf Of Jeremy Kvurr
>Sent: Monday, December 21, 2015 7:11 AM
>To: address@hidden
>Subject: [Tinycc-devel] How to use tcc_add_symbol?

>I'm trying to do tcc_add_symbol(myState, "glClear", &glClear);, but it breaks 
>with access exception at runtime, without any message. It kind of compiles 
>>properly, but instead of calling glClear it calls another weird address. What 
>can I do about it?

If glClear is a function, you don't need the '&' in front of it, C understands 
it as an address already in that context.

Hope this Helps,
  Steve M.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]