Le mardi 29 décembre 2015 à 13:58 -0800, Steven G. Johnson a écrit : > That's odd. If you do "const path = ...", I don't think it matters > to the compiler whether the right-hand-side is a string literal or an > expression that generates a string; the end result is the same. > > I just tried it, and ccall((:symbol, path), ...) works fine for me > when path is defined via "const path = joinpath(...)". Are you sure > you remembered the "const"? Indeed, it looks like we were both confused, it works fine if you do const path = joinpath(dirname(@__FILE__),"..","bin","lib.so")
But without the dirname() call you'd get a "Could not open file" error of course. Regards
