The other answer is correct. However, for this specific problem (if these are the only linker errors you are getting) I see two workarounds:
- Grab the source from sqlite3 that includes
sqlite3BitvecSet
and compile those functions in your own project to override the library. They will pick up whatever divmod support is offered by your own compiler. - Implement your own
udivmodsi4
. You don't have to implement bitwise division (although you can go get that basic C implementation from the GCC source). You just have to implement it in native operations and let your compiler call whatever internal support it needs.
This is untested, but should give you the basic idea. You may need more underscores on the name to match the behavior/naming of the other build environment:
unsigned long
udivmodsi4(unsigned long num, unsigned long den, int modwanted)
{
if (modwanted)
return num % den;
else
return num / den;
}