onivim / libvim

libvim: The core Vim editing engine as a minimal C library
https://v2.onivim.io
MIT License
692 stars 34 forks source link

Manually build headers error: Vim only works with 32 bit int or larger #267

Open glyh opened 3 years ago

glyh commented 3 years ago

Instructions: Replace the template text and remove irrelevant text (including this line)

Describe the bug I tired to build this library with build/build-posix.sh on arch linux, only to find the generated headers has a bunch of errors in it. The generated header files & static library can't be build to another program with the following commands because of the errors in it.

gcc -g -I./include test.c -o out -L./lib -lvim

To Reproduce

  1. set environment variable cur_install to "/tmp/libvim-test-export"
  2. run build/build-posix.sh
  3. open vim.h under generated include path

Expected behavior No errors

Screenshots image

Environment (please complete the following information):

tomaz1502 commented 1 year ago

I was having a similar error. I could fix it by compiling with the flag -DHAVE_CONFIG_H.