Community project - BlitzMax help files

BlitzMax Forums/BlitzMax Beginners Area/Community project - BlitzMax help files

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

The difference between import & include
----------------------------------------------

I think it's important to say that a lot of trouble you might be getting from bmx may stem from using:
import "something.bmx"

instead of simply
include "something.bmx"

The samples seem to be rife with it and I assumed (since include wasn't highlighted in my bmx IDE) that this was the new way to include other files. I think a lot of my problems came from this simple misunderstanding.

Dreamora said it best in this topic: http://www.blitzbasic.com/Community/posts.php?topic=42097


Includes: replaces the include line with the source within the file
Import: Links the compiled version of the source with the exe ( especially then needed when you get modules that don't have any source ).