c2v icon indicating copy to clipboard operation
c2v copied to clipboard

V Translate - header files not detected, no wrapper generated

Open SlashScreen opened this issue 1 year ago • 2 comments

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.

SlashScreen avatar Nov 03 '23 07:11 SlashScreen

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

BreathXV avatar Jun 06 '24 02:06 BreathXV

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

JalonSolov avatar Jun 06 '24 12:06 JalonSolov