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

CRT _timezone undefined reference issue on 64-bit windows #356

Open
mudhairless opened this issue Feb 7, 2022 · 0 comments
Open

CRT _timezone undefined reference issue on 64-bit windows #356

mudhairless opened this issue Feb 7, 2022 · 0 comments

Comments

@mudhairless
Copy link
Contributor

mudhairless commented Feb 7, 2022

This short example fails to compile with 1.09 on win64

#include once "crt/time.bi"

? _timezone

Error:

C:\FreeBASIC\bin\win64\ld.exe: fbc-issue.o:fake:(.rdata$.refptr._imp___timezone[.refptr._imp___timezone]+0x0): undefined reference to _imp___timezone'

I found a similar issue here: // mingw's msvcrt is a weird hybrid import library and static library. that indicates fbc may need to add msvcrt to LD's commandline twice so that it get the static and import parts. I tried hacking it into my local compiler but it did not change the error.

32bit compiler on windows (or building for 32bit) is not affected.

@mudhairless mudhairless changed the title CRT _timezone undefind reference issue on 64-bit windows CRT _timezone undefined reference issue on 64-bit windows Feb 7, 2022
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

1 participant