Open ShuguangSun opened 1 month ago
Same issue.
The vasprintf
implicit declaration means that it isn't finding the header files. Can you try the following in the latest pdf-tools
directory?
./autogen.sh
CFLAGS='-g -O2 -D_GNU_SOURCE' ./configure
make
If this compiles properly, then I'll check how to incorporate the fix into the master branch.
I do not use Windows and have no way to test this myself.
In the prebuilt MSY2 package we have been using CFLAGS+=' -D_GNU_SOURCE
for a while, and successfully reran the package build with the latest pdf-tools commit. The autobuild script though doesnt' set _GNU_SOURCE
.
The
vasprintf
implicit declaration means that it isn't finding the header files. Can you try the following in the latestpdf-tools
directory?./autogen.sh CFLAGS='-g -O2 -D_GNU_SOURCE' ./configure make
This works.
./autogen.sh CFLAGS='-g -O2 -D_GNU_SOURCE' ./configure make
Hi, sorry for the delay. I can confirm that the compilation succeeds with the above instructions.
I m sorry I posted the exact same issue as a new issue (sry noob here) Can you give exact instuctions on how and where to implement:
./autogen.sh
CFLAGS='-g -O2 -D_GNU_SOURCE' ./configure
make
I had originally edited the .c file, but came to realize the this might have broken my synctex functionality. Please help I would love to write my paper in auctex. How and where to I put/execute that code snipped.
Do i need to run that in Msys2 or in Emacs or cmd or mingw64?
Describe the bug Compiling failed using most recent MSYS/MingW64 in Windows.
Steps to Reproduce the behaviour Steps to reproduce the behaviour:
Desktop Please complete the following information:
Your pdf-tools install Please complete the following information:
pdf-tools
Version: pdf-tools-20240429.407