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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...