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
Language
English
Product name
MapBasic
Title
MapInfo MapBasic Reference
First publish date
1985
Last updated
2023-09-12
Published on
2023-09-12T16:32:32.686312

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.