It turns out that julia 0.3.4 didn't enforce immutable in ccalls, and I 
should be using mutable types to store states. Thanks for the help 
everybody!


On Thursday, April 2, 2015 at 7:28:16 PM UTC-7, Siyi Deng wrote:
>
> Hi,
> I have created a c shared library using visual-studio; then I called the c 
> functions in Juno IDE, everything worked as expected.
>
> Then I installed the julia command line version, and ran the same script 
> again, and this time it seems that the c functions has not been called 
> properly, no exception was thrown, but the functions never return 
> meaningful values.
>
> I was using the 64bit stable release in both cases.
>
> Any insight? Thanks!
>

Reply via email to