[SOLVED] Unresolved external function '__imp____iob_func'.

Windows specific forum
User avatar
IceSoft
Addict
Addict
Posts: 1616
Joined: Thu Jun 24, 2004 8:51 am
Location: Germany

[SOLVED] Unresolved external function '__imp____iob_func'.

Post by IceSoft »

I compile the same source as x86 and as x64.

x64 is compiling and linking very well. Executable (debug/release) is working of course.

But the x86 version (debug/release) has an linker error.
Is PB x86 compiled with an older/different linker/compiler as x64?
******************************************
PureBasic 5.70 LTS beta 3 (Windows - x86)
******************************************

Compiling ..\..\Chipmunk2D_Demos\Chipmunk2D4PB_Demo_20181029.pb
Loading external libraries...
Starting compilation...
Including source: .\include\Chipmunk2D4PB.pbi
Including source: .\Chipmunk4PB_Resident.pbi
Including source: .\Demos\PinBall.pbi
Including source: .\Demos\Plink.pbi
Including source: .\Demos\GrainsDeSable.pbi
Including source: .\Demos\GravityBounce.pbi
1869 lines processed.
Creating executable "..\Chipmunk2D4PB_Demo_20181029_x86.exe".
Error: Linker
POLINK: error: Unresolved external symbol '__imp____iob_func'. <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
POLINK: fatal error: 1 unresolved external(s).
******************************************
PureBasic 5.70 LTS beta 3 (Windows - x64)
******************************************

Compiling ..\..\Chipmunk2D_Demos\Chipmunk2D4PB_Demo_20181029.pb
Loading external libraries...
Starting compilation...
Including source: .\include\Chipmunk2D4PB.pbi
Including source: .\Chipmunk4PB_Resident.pbi
Including source: .\Demos\PinBall.pbi
Including source: .\Demos\Plink.pbi
Including source: .\Demos\GrainsDeSable.pbi
Including source: .\Demos\GravityBounce.pbi
1869 lines processed.
Creating executable "..\Chipmunk2D4PB_Demo_20181029_x64d.exe".

- Feel the ..PuRe.. Power -
Last edited by IceSoft on Tue Nov 27, 2018 5:12 pm, edited 2 times in total.
Belive!
<Wrapper>4PB, PB<game>, =QONK=, PetriDish, Movie2Image, PictureManager,...
Fred
Administrator
Administrator
Posts: 16681
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: [5.70b3 x86] Unresolved external symbol '__imp____iob_fu

Post by Fred »

You need to compile your lib with a special flag for x86, you can look in the makefile of the SDK IIRC. It's not a PB bug.
User avatar
IceSoft
Addict
Addict
Posts: 1616
Joined: Thu Jun 24, 2004 8:51 am
Location: Germany

Re: [5.70b3 x86] Unresolved external symbol '__imp____iob_fu

Post by IceSoft »

Fred wrote:You need to compile your lib with a special flag for x86, you can look in the makefile of the SDK IIRC. It's not a PB bug.
I know:
That are the additional preprocessor flags for x86:
X86;VISUALC;WINDOWS;UNICODE

and thats for x64:
X64;VISUALC;WINDOWS;UNICODE

I will make some more tests.
Belive!
<Wrapper>4PB, PB<game>, =QONK=, PetriDish, Movie2Image, PictureManager,...
Fred
Administrator
Administrator
Posts: 16681
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: [5.70b3 x86] Unresolved external symbol '__imp____iob_fu

Post by Fred »

User avatar
IceSoft
Addict
Addict
Posts: 1616
Joined: Thu Jun 24, 2004 8:51 am
Location: Germany

Re: [5.70b3 x86] Unresolved external symbol '__imp____iob_fu

Post by IceSoft »

Ok it compiles now:
******************************************
PureBasic 5.70 LTS beta 3 (Windows - x86)
******************************************

Compiling ..\..\Chipmunk2D_Demos\Chipmunk2D4PB_Demo_20181029.pb
Loading external libraries...
Starting compilation...
Including source: .\include\Chipmunk2D4PB.pbi
Including source: .\Chipmunk4PB_Resident.pbi
Including source: .\Demos\PinBall.pbi
Including source: .\Demos\Plink.pbi
Including source: .\Demos\GrainsDeSable.pbi
Including source: .\Demos\GravityBounce.pbi
1869 lines processed.
Creating executable "..\Chipmunk2D4PB_Demo_20181029_x86.exe".

- Feel the ..PuRe.. Power -
******************************************
PureBasic 5.70 LTS beta 3 (Windows - x64)
******************************************

Compiling ..\..\Chipmunk2D_Demos\Chipmunk2D4PB_Demo_20181029.pb
Loading external libraries...
Starting compilation...
Including source: .\include\Chipmunk2D4PB.pbi
Including source: .\Chipmunk4PB_Resident.pbi
Including source: .\Demos\PinBall.pbi
Including source: .\Demos\Plink.pbi
Including source: .\Demos\GrainsDeSable.pbi
Including source: .\Demos\GravityBounce.pbi
1869 lines processed.
Creating executable "..\Chipmunk2D4PB_Demo_20181029_x64.exe".

- Feel the ..PuRe.. Power -
Belive!
<Wrapper>4PB, PB<game>, =QONK=, PetriDish, Movie2Image, PictureManager,...
Post Reply