Skip to content

cimport, error: dependency loop detected #18247

Open
@jimying

Description

@jimying

Zig Version

0.12.0-dev.1808+69195d0cd

Steps to Reproduce and Observed Behavior

I want to call pjsip(open source: https://github.com/pjsip/pjproject) library in zig.

Here my simple sample : https://github.com/jimying/testpj.zig

steps to build sample (tested in linux x86_64):

# 1. install pjsip library
sh install_pjsip.sh

# 2. build, this step is fail, `error: dependency loop detected`.
zig build 

Expected Behavior

build and run ok

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugObserved behavior contradicts documented or intended behaviortranslate-cC to Zig source translation feature (@cImport)

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions