Unrecognized import file type

BlitzMax Forums/BlitzMax Module Tweaks/Unrecognized import file type

Ratchet(Posted 2008) [#1]
I'm new in making mods. I try make a embedded ruby mod to execute ruby scripts.
If I try to import the ruby.h I got the error:
Unrecognized import file type for import '../ruby/include/ruby.h'
What am I doing wrong?


Brucey(Posted 2008) [#2]
You can't directly import .h files.

Instead, do something like :

Import "../ruby/include/*.h"


Ratchet(Posted 2008) [#3]
Then, it looks like nothing is imported. The files of the module got a size of 1kb (too less for ruby) and BM can't find my functions from the extern block.


grable(Posted 2008) [#4]
You need to import either the C/C++ files or a precompiled library, then you have to add all the functions (or classes if the methods are virtual) to an Extern block.