vlang / c2v

C/C++ to V translator
GNU General Public License v3.0
227 stars 31 forks source link

V Translate - header files not detected, no wrapper generated #159

Open SlashScreen opened 1 year ago

SlashScreen commented 1 year ago

Describe the bug

I attempted to make a wrapper for the Playdate SDK, but v translate detected no files when passing in a directory, and translated nothing.

Reproduction Steps

In the root of the provided files, run v translate wrapper src/playdate/include.

Expected Behavior

It creates a wrapper around the playdate API.

Current Behavior

It compiles 0 files.

Possible Solution

No response

Additional Information/Context

playdate.zip

V version

0.4.2 11e67a1

Environment details (OS name and version, etc.)

Windows 11

[!NOTE] You can use the 👍 reaction to increase the issue's priority for developers.

Please note that only the 👍 reaction to the issue itself counts as a vote. Other reactions and those to comments will not be taken into account.

BreathXV commented 5 months ago

You need to make a c2v.toml file that contains the header files your C file uses.

JalonSolov commented 5 months ago

See https://github.com/vlang/c2v?tab=readme-ov-file#configuration