[GIS] Creating MBO files with MapBasic and Notepad++

mapbasicmapinfo

[Note: I have been using Notepad++ (with some customisations as per this page), rather than MapBasic itself. This may make things a bit trickier, but so far the time saved in development has been worth the extra hassle during setup.]

I am trying to start using project files with MapBasic. As I understand it the process is as follows: compile your modules from .mb files into .mbo files. Then process the .mbp file which links the .mbo files together and, if there are no errors, creates a .mbx.

This makes sense to me except for one thing…how do i get my .mb files to compile to .mbo instead of .mbx? What am I missing?!

Best Answer

If the .mb files have a Main sub in them, they will compile to .mbx.

Remove the main and they will compile to an .mbo file

Related Question