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

undefined reference to `__imp__ftelli64' #32

Closed
hasanAjsf opened this issue Jul 29, 2021 · 7 comments
Closed

undefined reference to `__imp__ftelli64' #32

hasanAjsf opened this issue Jul 29, 2021 · 7 comments

Comments

@hasanAjsf
Copy link

Trying to test it at Windows, but got:

# github.com/gen2brain/go-fitz
C:/Users/hasan/Documents/GoWorkPlace/pkg/mod/github.com/gen2brain/go-fitz@v1.18.0/libs/libmupdf_windows_amd64.a(output.o):output.c:(.text$file_tell+0xe): undefined reference to `__imp__ftelli64'
C:/Users/hasan/Documents/GoWorkPlace/pkg/mod/github.com/gen2brain/go-fitz@v1.18.0/libs/libmupdf_windows_amd64.a(output.o):output.c:(.text$file_seek+0x14): undefined reference to `__imp__fseeki64'
C:/Users/hasan/Documents/GoWorkPlace/pkg/mod/github.com/gen2brain/go-fitz@v1.18.0/libs/libmupdf_windows_amd64.a(stream-open.o):stream-open.c:(.text$seek_file+0x1d): undefined reference to `__imp__fseeki64'
C:/Users/hasan/Documents/GoWorkPlace/pkg/mod/github.com/gen2brain/go-fitz@v1.18.0/libs/libmupdf_windows_amd64.a(stream-open.o):stream-open.c:(.text$seek_file+0x2e): undefined reference to `__imp__ftelli64'
collect2.exe: error: ld returned 1 exit status
@gen2brain
Copy link
Owner

What compiler are you using? The MinGW-w64 should have fteli64, also recent MinGW from mingw.org.

@hasanAjsf
Copy link
Author

mmm, May I did not understand the installation, just having Go1.16.6 and run go get ... command!
Do I need to do some other things?

@gen2brain
Copy link
Owner

@hasanAjsf
Copy link
Author

Trying to understanding, this is something completely new for me, if you can add some more explanation in the required installation/build, it will be great help. thanks

@gen2brain
Copy link
Owner

The instructions are the same for every project that uses C libraries, you need a C compiler installed, like Mingw-w64 or TDM-GCC.

@gen2brain
Copy link
Owner

When I tested other projects in Windows, the easiest for me was to install TDM-GCC, of course in Linux everything is much simpler to install/configure.

@hasanAjsf
Copy link
Author

Thanks a lot, I installed tdm-gcc and things are great now, I would recommend you add small note about this in the installation section, I expect not to be the only who do not this :)

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