goule Posted September 21, 2005 Posted September 21, 2005 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
ramonster Posted September 22, 2005 Posted September 22, 2005 I've just fixed this problem myself.Download all the header and include fileshttp://sdcc.sourceforge.net/snapshots/i586-mingw32msvc/sdcc-snapshot-i586-mingw32msvc-20050922.zipextract 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 workGreetings,Ramonster
goule Posted September 22, 2005 Author Posted September 22, 2005 Thank you, mate! :DI'll try that this evening when back from work !! 8)Goule
goule Posted September 22, 2005 Author Posted September 22, 2005 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now