MATH.H library error

Página 1/2
| 2

Por tsmvp

Rookie (18)

imagem de tsmvp

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

Entrar ou registrar-se para comentar

Por tsmvp

Rookie (18)

imagem de tsmvp

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

Por Wolverine_nl

Paragon (1046)

imagem de Wolverine_nl

28-05-2018, 15:59

Por Sylvester

Champion (399)

imagem de Sylvester

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.

Por Jin

Resident (37)

imagem de Jin

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 ?

Por Wolverine_nl

Paragon (1046)

imagem de Wolverine_nl

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

Por Jin

Resident (37)

imagem de Jin

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

Por Jin

Resident (37)

imagem de Jin

18-06-2018, 23:43

i have tryied to use:

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

Por Manuel

Ascended (15799)

imagem de Manuel

19-06-2018, 00:31

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

Por Jin

Resident (37)

imagem de Jin

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

Por Jin

Resident (37)

imagem de Jin

19-06-2018, 01:19

MSX-C still giving error messages XD

Página 1/2
| 2