Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
glyh opened this issue Aug 13, 2021 · 1 comment
Open

Comments

@glyh
Copy link

glyh commented Aug 13, 2021

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):

  • libvim version: last commit 9ade7d1
  • OS: Linux arch 5.13.9-arch1-1 #1 SMP PREEMPT Sun, 08 Aug 2021 11:25:35 +0000 x86_64 GNU/Linux
  • Terminal: alacritty (does that matter?)
@tomaz1502
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants