Page 1 of 1

/D__iob_func=__p__iob and x64

Posted: Fri Dec 08, 2023 5:08 pm
by wombats
Hi,

I'm trying to create a static lib on Windows, but I'm running into this error: "error: Unresolved external symbol '__imp___acrt_iob_func' referenced from". I found this thread where Fred said to use /D__iob_func=__p__iob, but it looks like it only works for x86. Is there a solution for x64?

Re: /D__iob_func=__p__iob and x64

Posted: Fri Dec 08, 2023 10:00 pm
by idle
Making static libs is difficult because of the CRT version pb uses which is ancient, Freds going to address that in 6.10. you can try to add the relevant crt libs to your archive but even then sometimes it doesn't work
https://learn.microsoft.com/en-us/cpp/c ... w=msvc-170

Re: /D__iob_func=__p__iob and x64

Posted: Sat Dec 09, 2023 6:56 am
by DrShrek
Maybe its will be easier with the coming PB 6.10 version.