Problems compiling texture plugin - mac - of course!

I am trying to see what the texture plugins can do and possibly use a few myself.

So I try to compile the tiles.c that comes with blender and I get the following:


cc -fPIC -funsigned-char -O2 -fno-common -c tiles.c -I../include
cc -flat_namespace -bundle -bundle_loader /Applications/blender/blender.app/Contents/MacOS/blender -lm tiles.o -o tiles.so 
ld: Undefined symbols:
_hnoise
Link error

does anyone know something here? hnoise is a function that is prototyped in plugin.h, but I don’t know…

I also thought of something…less to do with the compiling, more with what the plugins can do.

Other than the values from result, is there a way to access other data about the scene, such as the view matrix of the camera?

not to my knowledge.