Problems when building own modules.

BlitzMax Forums/BlitzMax Programming/Problems when building own modules.

Fabian.(Posted 2005) [#1]
I've problems when trying to build own mods.
I created a module like documented.
Then I wrote a program to test it like:
Strict

AFunctionInsideTheModule ( )
But there was an error, because it didn't found the function ("Identifier 'AFunctionInsideTheModule' not found.")
So I wrote the this:
Strict

Import ModuleScope.ModuleName

AFunctionInsideTheModule ( )
Here the error was "Can't find interface for module 'ModuleScope.ModuleName'."
I tried 'Build Modules' and 'Rebuild All Modules', but it didn't help.
Also I noticed that bmk doesn't document the modules.

Thanks for help.


Gabriel(Posted 2005) [#2]
Make sure you make your module directories lower case ( the actual directories, not the code that refers to them. The code that imports them is not even case sensitive. ) For some reason, upper case folders don't get recognised for modules.


Fabian.(Posted 2005) [#3]
Thanks a lot, it works when writing all directory names lower cased!

But, doesn't anyone know, when will bmk support upper case names?
Or won't it do so at all?


Fabian.(Posted 2005) [#4]
And what about the docs?
How can I make bmk document my modules?


snation(Posted 2005) [#5]
Fabian,

Don't use bmk. Use:
docmods makedocs modulescope.modulename
docmods syncdocs

this'll generate the docs and then update them.
just went through this myself ;-)