Please help: Framework + Import commands

BlitzMax Forums/BlitzMax Programming/Please help: Framework + Import commands

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.

Hello all,

I'm experiencing a lot of frustration trying to get my head around the framework and import commands. I don't want to package every .mod under the sun within my application; however I'm unable to create a basic framework + import command set that works; I expect this has something to do with dependencies - and perhaps even the order of the included modules.

ie.

Framework BRL.blitz
Import BRL.max2d
Import BRL.system
Import BRL.audio
Import BRL.system
Import BRL.oggloader
Import BRL.math
Import BRL.random
Import BRL.bmploader

Const gwidth=640,gheight=480,gdepth=32

Graphics gwidth,gheight,gdepth

gives you a "Graphics mode does not exist" in the input/output console, however reports no issues on a "full" compile (ie. with no framework or import commands)

Is there a reliable way (i.e. a set of procedures) one can build a framework/import command list?

I would appreciate if someone could explain in detail these commands (i.e. beyond what's in the standard documentation), how they relate to the compiler, and most importantly, exactly what steps one would take to build a framework/import command list for a project.

Thanking you in advance.