September 20, 2026, 07:26:30 PM

News:

IonicWind Snippit Manager 2.xx Released!  Install it on a memory stick and take it with you!  With or without IWBasic!


Linking Error

Started by matty47, August 31, 2026, 01:52:29 AM

Previous topic - Next topic

0 Members and 4 Guests are viewing this topic.

matty47

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

matty47

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?

matty47

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