MapBasic Compiles to MBO Format Instead of to MBX - MapBasic - 2023

MapInfo MapBasic Reference

Product type
Software
Portfolio
Locate
Product family
MapInfo
Product
MapInfo > MapBasic
Version
2023
ft:locale
en-US
Product name
MapBasic
ft:title
MapInfo MapBasic Reference
First publish date
1985
ft:lastEdition
2023-09-12
ft:lastPublication
2023-09-12T16:32:32.686000

Issue: The MapBasic program compiles to a *.MBO format file instead of to a *.MBX file.

One of two things can cause this to happen:

  • The MapBasic program does not have a Sub Main.
  • The MapBasic program is calling a Sub or Function from another module that includes a *.DEF file at the beginning of the program.

Fix: The MBO file must be linked in a project file (*.MBP) with other *.MBO file to create the *.MBX.