MySQL.jl icon indicating copy to clipboard operation
MySQL.jl copied to clipboard

Method overwriting is not permitted during Module precompilation

Open kafisatz opened this issue 1 year ago • 2 comments

Using Julia 1.10 I get the error below. I am not sure how to fix this though....

WARNING: Method definition mysql_get_option(Ptr{Nothing}, Integer, Ref{UInt32}) in module API at C:\Users\bernhard.koenig\.julia\packages\MySQL\pGOcg\src\api\ccalls.jl:218 overwritten at C:\Users\bernhard.koenig\.julia\packages\MySQL\pGOcg\src\api\ccalls.jl:225.
ERROR: Method overwriting is not permitted during Module precompilation. Use `__precompile__(false)` to opt-out of precompilation.

kafisatz avatar Feb 20 '24 10:02 kafisatz

Ok, adding __precompile__(false) is a workaround for now

__precompile__(false) 
module MyModule
#bla 
end

kafisatz avatar Feb 20 '24 11:02 kafisatz

Hello, solved in 1.4.6

pascalr0410 avatar Mar 21 '24 08:03 pascalr0410