trixi-framework / P4est.jl

P4est.jl is lightweight Julia wrapper for the p4est C library, which allows to manage multiple connected adaptive quadtrees/octrees in parallel.

Home Page:https://trixi-framework.github.io/P4est.jl

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

`libsc` functions don't work on Windows

efaulhaber opened this issue · comments

This one-liner

sc_package_id()

yields

julia> sc_package_id()
CBinding.Cglobal{Int32}(Ptr{Int32} @0x00007efe185a691c)

on Linux but

julia> sc_package_id()
ERROR: could not load symbol "sc_package_id":
The specified procedure could not be found.
Stacktrace:
 [1] macro expansion
   @ ~\.julia\packages\CBinding\9dfDe\src\cglobal.jl:22 [inlined]
 [2] _cglobal
   @ ~\.julia\packages\CBinding\9dfDe\src\cglobal.jl:19 [inlined]
 [3] DeferredCglobal
   @ ~\.julia\packages\CBinding\9dfDe\src\cglobal.jl:16 [inlined]
 [4] sc_package_id()
   @ P4est.LibP4est ~\.julia\packages\CBinding\9dfDe\src\cbindings.jl:108
 [5] top-level scope
   @ REPL[1]:1

on Windows.
This happens with multiple (maybe all) sc_ functions.

Lucky me, I can reproduce the observed behavior on Windows \o/. I do not know yet, however, how to even approach this bug...