Realy nooblike question

BlitzMax Forums/BlitzMax Beginners Area/Realy nooblike question

Damien Sturdy(Posted 2004) [#1]
1) i doubt it, but can i import c code into bmax? if not, how can i get this code (once ive managed to compile it- something ive never done before...) usable in Bmax. I assume its going to turn out a DLL....

Either way, how do i access the functions from the code?


Who was John Galt?(Posted 2004) [#2]
1) Yes! It's not hard either. Check out 'advanced topics' in the bmax language reference for an example.


Damien Sturdy(Posted 2004) [#3]
oh F*** YEAH! cheers... that was easy ^.^ wooooOOOOOO!!!!! :D


*project number 6503 begun :D

[edit]

Okay, now im getting "GCC not recognised as an internal or external command" or something to the like... i figure this is the compiler?
how do i get the c compiler working with max? tried on the GCC webpage but i keep geting lost...


Kanati(Posted 2004) [#4]
mingw .. that's what you need to download and install. Add the bin directory of mingw to your path and you will be all set.


Damien Sturdy(Posted 2004) [#5]
Pah.. i thought you didnt need that :S well, il go get. I suspect all this C stuff is me aiming too high though!


Hotcakes(Posted 2004) [#6]
"You don't need it unless compiling modules." Or any C code in general ;]

Remember to follow Mark's instructions in his top post of the win32/linux beta download thread, for setting up the environment variables!