IonicWind Software

IWBasic => IWB3.x Bug Reports => Topic started by: matty47 on August 31, 2026, 01:52:29 AM

Title: Linking Error
Post by: matty47 on August 31, 2026, 01:52:29 AM
Just getting back to IBW3. I keep getting a linking error

Compiling...
iwbasic0.testiwb.iwb

Linking...
IWBasic Linker v1.11 Copyright © 2011 Ionic Wind Software
Unresolved external _ib_main
Error: D:\IWBDev3\libs\winmain.o - Unresolved extern _ib_main
Error(s) in linking IWB3Test.exe

The source is just the Openwindow program from the help file.
This seems to compile, link and execute OK in IWB2.
Working on up to date Win11 Pro 64.
Anyone know how to fix?
I did reinstall but no change. - Thanks
Title: Re: Linking Error
Post by: matty47 on August 31, 2026, 03:01:02 AM
The above error was generated when I had the file in a project. When I tried compiling the file as a single (not in a project) it compiled fine. I must be missing something in the project setup?
Title: Re: Linking Error
Post by: matty47 on August 31, 2026, 04:17:59 AM
Sometimes I amaze myself at how I can miss something that is clearly stated in the help file. The test file needed a $main directive somewhere in its content - when it is included in a project. So ther was no problem - apart from me not reading the help file well enough!  DOH