POLINK: error: Unresolved external symbol '__imp____iob_func
POLINK: error: Unresolved external symbol '__imp____iob_func
Created a staticlib from the Chipmunk 2D physic engine 5.2.0 with VisualStudio 2008.
Using with PB I got this POLINK: error: Unresolved external symbol '__imp____iob_func'.
Using with PB I got this POLINK: error: Unresolved external symbol '__imp____iob_func'.
Belive! C++ version of Puzzle of Mystralia
<Wrapper>4PB, PB<game>, =QONK=, PetriDish, Movie2Image, PictureManager,...
<Wrapper>4PB, PB<game>, =QONK=, PetriDish, Movie2Image, PictureManager,...
Re: POLINK: error: Unresolved external symbol '__imp____iob_func
This is not a PureBasic error, you need to patch the lib to remove the iob_func stuff. PB links with an old CRT to be compatiable with former Windows version which doesn't support that. To fix it, add this preprocessor line to your compiler (only on x86):
Code: Select all
/D__iob_func=__p__iob
- zxtunes.com
- Enthusiast
- Posts: 375
- Joined: Wed Apr 23, 2008 7:51 am
- Location: Saint-Petersburg, Russia
- Contact:
Re: POLINK: error: Unresolved external symbol '__imp____iob_
Fred wrote:This is not a PureBasic error, you need to patch the lib to remove the iob_func stuff. PB links with an old CRT to be compatiable with former Windows version which doesn't support that. To fix it, add this preprocessor line to your compiler (only on x86):
Code: Select all
/D__iob_func=__p__iob
Somebody could solve this problem?

Re: POLINK: error: Unresolved external symbol '__imp____iob_
What want you read?zxtunes.com wrote:Fred wrote:This is not a PureBasic error, you need to patch the lib to remove the iob_func stuff. PB links with an old CRT to be compatiable with former Windows version which doesn't support that. To fix it, add this preprocessor line to your compiler (only on x86):
Code: Select all
/D__iob_func=__p__iob
Somebody could solve this problem?
There are two solutions:
1. The answer from Fred before
2. Or: Fred, dont use any longer outdated/older libs/dll. In this case: an old CRT.
Belive! C++ version of Puzzle of Mystralia
<Wrapper>4PB, PB<game>, =QONK=, PetriDish, Movie2Image, PictureManager,...
<Wrapper>4PB, PB<game>, =QONK=, PetriDish, Movie2Image, PictureManager,...
Re: POLINK: error: Unresolved external symbol '__imp____iob_
It's not going to change, just recompile your lib.
Re: POLINK: error: Unresolved external symbol '__imp____iob_
I have similar problem. I compiled Lua 5.1.4 as static library (with __stdcall calling convention) and almost everything works fine. I get this error when calling luaopen_os() module:
Thanks
Does anyone know how to solve this?---------------------------
PureBasic - Linker error
---------------------------
POLINK: error: Unresolved external symbol '__imp___difftime64'.
POLINK: error: Unresolved external symbol '__imp___gmtime64'.
POLINK: error: Unresolved external symbol '__imp___localtime64'.
POLINK: error: Unresolved external symbol '__imp___mktime64'.
POLINK: error: Unresolved external symbol '__imp___time64'.
POLINK: fatal error: 5 unresolved external(s).
---------------------------
OK
---------------------------
Thanks
Re: POLINK: error: Unresolved external symbol '__imp____iob_
@Fred,
Will we get a up-to-date CRT lib with the next PB version?
Will we get a up-to-date CRT lib with the next PB version?
Belive! C++ version of Puzzle of Mystralia
<Wrapper>4PB, PB<game>, =QONK=, PetriDish, Movie2Image, PictureManager,...
<Wrapper>4PB, PB<game>, =QONK=, PetriDish, Movie2Image, PictureManager,...
Re: POLINK: error: Unresolved external symbol '__imp____iob_
Short info (done with PB 4.60 Beta2):
I updated msvcrt.lib on the Purebasic\PureLibraries\Windows\Libraries and it works now.
It looks for me: Developer which are no longer supporting Win98 should update all old libs and polink.exe after release of PB 4.60 but better: The nativ 4.60 should be switch to the actual libs/exe/etc.
@PureBasic welcome on 2011
1998 is past 
I updated msvcrt.lib on the Purebasic\PureLibraries\Windows\Libraries and it works now.
It looks for me: Developer which are no longer supporting Win98 should update all old libs and polink.exe after release of PB 4.60 but better: The nativ 4.60 should be switch to the actual libs/exe/etc.
@PureBasic welcome on 2011


Belive! C++ version of Puzzle of Mystralia
<Wrapper>4PB, PB<game>, =QONK=, PetriDish, Movie2Image, PictureManager,...
<Wrapper>4PB, PB<game>, =QONK=, PetriDish, Movie2Image, PictureManager,...
Re: POLINK: error: Unresolved external symbol '__imp____iob_
I confirm this works!Fred wrote:This is not a PureBasic error, you need to patch the lib to remove the iob_func stuff. PB links with an old CRT to be compatiable with former Windows version which doesn't support that. To fix it, add this preprocessor line to your compiler (only on x86):
Code: Select all
/D__iob_func=__p__iob


So that got rid of the __iob_func error.

I was also experiencing two __security errors of the same nature. These were resolved by turning off Buffer Security Checks:

All good then!

Thanks Fred for .LIB support and the whole world of possibilities it opens up!
-
- Enthusiast
- Posts: 480
- Joined: Thu Jul 27, 2006 4:06 am
Re: POLINK: error: Unresolved external symbol '__imp____iob_func
i know this is an old thread but i am also trying to get rid of this error in x64 any advice?
pb 5.7lts because right now i cannot port my code to the latest version too many changes for my project
using the commandline options in x64 doesnt seem to work in visual studio.
pb 5.7lts because right now i cannot port my code to the latest version too many changes for my project
using the commandline options in x64 doesnt seem to work in visual studio.


Re: POLINK: error: Unresolved external symbol '__imp____iob_func
They have changed the parameters for the command line pbcompiler. You have to adjust these in Visual Studio.
Constants '-o, --constant,/CONSTANT Name=Value' -> '-co, --constant,/CONSTANT Name=Value'
Output '-e, --executable, /EXE' -> '-o, --output, /OUTPUT "filename"'
See PB-Help
Constants '-o, --constant,/CONSTANT Name=Value' -> '-co, --constant,/CONSTANT Name=Value'
Output '-e, --executable, /EXE' -> '-o, --output, /OUTPUT "filename"'
See PB-Help
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive