/D__iob_func=__p__iob and x64

Windows specific forum
wombats
Enthusiast
Enthusiast
Posts: 653
Joined: Thu Dec 29, 2011 5:03 pm

/D__iob_func=__p__iob and x64

Post 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?
User avatar
idle
Addict
Addict
Posts: 4964
Joined: Fri Sep 21, 2007 5:52 am
Location: New Zealand

Re: /D__iob_func=__p__iob and x64

Post 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
DrShrek
New User
New User
Posts: 7
Joined: Thu Jan 26, 2023 8:43 pm

Re: /D__iob_func=__p__iob and x64

Post by DrShrek »

Maybe its will be easier with the coming PB 6.10 version.
Post Reply