When compiling pg_query on Windows (patched to make it compiled), I have a pg_check command which fails:
Fatal error: exception Dl.DL_error("dlsym: no such symbol: \"pg_query_parse\"")
However, the pg_query_parse symbol is available:
$nm /cygdrive/c/Users/frede/AppData/Local/opam/default/bin/pg_check|grep pg_query_parse
00000001400c61c0 T pg_query_parse
00000001400c6250 T pg_query_parse_opts
00000001400c62e0 T pg_query_parse_protobuf
00000001400c6350 T pg_query_parse_protobuf_opts
Note, the pg_query library is based on ctypes.foreign. Then the issue may appear in other libraries.