#translate to C

1 messages · Page 1 of 1 (latest)

oblique otter
#

I'm trying to translate a c code into zig, the c file is located at https://github.com/nayuki/QR-Code-generator/blob/master/c/qrcodegen.c, and started by

#include <assert.h>
#include <limits.h>
#include <stdlib.h>
#include <string.h>
#include "qrcodegen.h"

Once I run zig translate-c qrcodegen.c I got the error qrcodegen.c:24:10: 'assert.h' file not found

Do I need to download all the c libs used at my file to be able to translate the it to zig or there is a way to link them?

eternal bear
#

add -lc to the command