MATH.H library error

Page 1/2
| 2

By tsmvp

Supporter (9)

tsmvp's picture

28-05-2018, 15:05

Gents,

Like many, I am trying to relearn a bit of programming on the MSX. :-)
Got MSX-C 1.2 up and running as per Javi's great relearning MSX blog post series.
Even managed (by reading a lot here) to get some sprites going. Now what I am trying to do is very simple (I think). Using COS/SIN functions to move the sprites around. I believe these are part of the MATH.H library.
When I simply try to add #include to my code and compile it, it throws an error:

[B:\INCLUDE\MATH.H] line 38 column 51: symbol table over flow

I have no clue why this is happening. If I remove the library from the .C file, it compiles and works with no issues.
Any ideas?

Thanks!

CR

Login or register to post comments

By tsmvp

Supporter (9)

tsmvp's picture

28-05-2018, 15:21

Ok I fixed it. It seems you need to change some parameters for CF, like cf -m -r:3:2:1.
Do I know what these do? Nope. But it does work. LOL.

CR

By Wolverine_nl

Paladin (888)

Wolverine_nl's picture

28-05-2018, 15:59

By Sylvester

Champion (364)

Sylvester's picture

28-05-2018, 19:06

But I don't have the idea that CF is using all available memory to keep track of the symbol table.

By Jin

Resident (37)

Jin's picture

18-06-2018, 22:03

Hello. I started to study msx-c few weeks ago. About this message:

"Ok I fixed it. It seems you need to change some parameters for CF, like cf -m -r:3:2:1.
Do I know what these do? Nope. But it does work. LOL.

CR"

how to change these parameters? Do I have to change them in c.bat ?

By Wolverine_nl

Paladin (888)

Wolverine_nl's picture

18-06-2018, 23:36

Make your own c.bat and change it in there. I used to create my own bat files, so every project has their own c.bat file Smile

By Jin

Resident (37)

Jin's picture

18-06-2018, 23:42

Wolverine, the error persists.

how did u create your bat file?

the original file is:

cf %2 % 1
fpc %1 mlib lib
cg -k %3 #1
m80 =%1/z
l80 (etc etc...)
xmain

can i change to:
cf -m -r:3:2:1

and keep all the rest?
fpc %1 mlib lib
cg -k %3 #1
m80 =%1/z
l80 (etc etc...)
xmain

By Jin

Resident (37)

Jin's picture

18-06-2018, 23:43

i have tryied to use:

c myprogram -m -r:3:2:1 also... but without success

By Manuel

Ascended (14378)

Manuel's picture

19-06-2018, 00:31

Keep the rest of the CF line too. Behind the new parameters.

By Jin

Resident (37)

Jin's picture

19-06-2018, 00:43

you mean:

cf %2 % 1 -m -r:3:2:1

Manuel?

or:

cf -m -r:3:2:1 %2 %1 ?

Im going to try both Big smile

By Jin

Resident (37)

Jin's picture

19-06-2018, 01:19

MSX-C still giving error messages XD

Page 1/2
| 2
My MSX profile