Making Mods

BlitzMax Forums/BlitzMax Programming/Making Mods

i'm just trying to update the math system so i can use radians for trig.



Strict


Module BRL.Math

Import "math.c"

Extern


Function rSin:Double( X:Double )="sin"

Function rCos:Double( X:Double )="cos"

Function rTan:Double( X:Double )="tan"

Function rATan:Double( X:Double )="atan"

Function rATan2:Double( Y:Double , X:Double )="atan2"

Function rACos:Double( X:Double )="acos"

Function rASin:Double( X:Double)="asin"



End Extern




i tried to use the makemods command in the bmk like so

"bmk.exe makemods Math.mod" in the command prompt.

What am i doing wrong?

Um, you just posted code that you're not allowed to post outside of Module Tweaks. Might want to remove that.

alright, thanksl, it's clean now. So what am i doing wrong?

bmk makemods brl.math

you have installed MinGW?

http://www.blitzbasic.com/Community/posts.php?topic=53442

I use a scipt (batch file) to copy file from test folder and install. I found more luck with compiling the whole group of modules.

Batch file goes as follows
-----Start----

mkdir "G:\Program Files\BlitzMax\mod\kita.mod\mmscoreboard.mod\"
copy core.bmx "G:\Program Files\BlitzMax\mod\kita.mod\mmscoreboard.mod\mmscoreboard.bmx"

G:
cd "G:\Program Files\BlitzMax\"

bin\bmk makemods kita

pause

explorer "G:\Program Files\BlitzMax\mod\kita.mod\mmScoreBoard.mod\"
-----End-----

You'll need to change paths, etc