MATH.H library error

Pagina 1/2
| 2

Door tsmvp

Resident (35)

afbeelding van 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

Aangemeld of registreer om reacties te plaatsen

Van tsmvp

Resident (35)

afbeelding van 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

Van Wolverine_nl

Paragon (1159)

afbeelding van Wolverine_nl

28-05-2018, 15:59

Van Sylvester

Hero (539)

afbeelding van 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.

Van Jin

Resident (37)

afbeelding van 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 ?

Van Wolverine_nl

Paragon (1159)

afbeelding van 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

Van Jin

Resident (37)

afbeelding van 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

Van Jin

Resident (37)

afbeelding van Jin

18-06-2018, 23:43

i have tryied to use:

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

Van Manuel

Ascended (18255)

afbeelding van Manuel

19-06-2018, 00:31

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

Van Jin

Resident (37)

afbeelding van 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

Van Jin

Resident (37)

afbeelding van Jin

19-06-2018, 01:19

MSX-C still giving error messages XD

Pagina 1/2
| 2