Jump to content

Recommended Posts

Posted

Hello,

I'd like to make some floating to int conversions.

I have already included "float.h" but it seems like it's not enough : I got the following compilation error :

error: missing definition for symbol "__divsint", required by "_output\main.o"

error: missing definition for symbol "__mulint", required by "_output\main.o"

What do I need ??

Thanx all

Posted

I've just fixed this problem myself.

Download all the header and include files

http://sdcc.sourceforge.net/snapshots/i586-mingw32msvc/sdcc-snapshot-i586-mingw32msvc-20050922.zip

extract them in a sdcc directory under you map with your files.

include these lines in your main.c file

#include "sdcc/lib/src/_divuint.c"

#include "sdcc/lib/src/_divsint.c"

#include "sdcc/lib/src/_muluint.c"

#include "sdcc/lib/src/_mulsint.c"

Should work

Greetings,

Ramonster

Posted

Well I still have an error:

missing definition for symbol "__gptrget1", required by "_output\main.o"

and never solved it (even trying the same method as above)

any ideas ?

Thanks,

Goule

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...