On Fri, Aug 16, 2013 at 1:04 AM, Mike Pall <mike-1308@xxxxxxxxxx> wrote: > Emil Dotchevski wrote: >> Mike, I'm pretty sure that I've broken the X360 build with this >> change. Is adding the two LJLIB_CFs as you indicated above all I have >> to do to add math.nmod/ndiv? > > Yes. > > Try cleaning the directory before every rebuild: > > del *.obj *.lib *.exp *.dll *.exe *.manifest *.pdb *.ilk > > Or maybe set up a clean build environment from scratch. Note: it's > probably not a good idea to mix a PC and a console build in the > same directory. > >> When I build, in the generated files I get nmod and ndiv, and they >> appear just before math.deg and math.rad in lj_ffdef.h. > > buildvm.exe and the *def.h files are re-generated every time you > recompile. The new library functions should appear exactly in the > order you placed them in lib_math.c. Can you please list all the generated files in which the new functions should appear? I still think that the fact that math.rad/deg are broken, and that they appear immediately after nmod/ndiv in various lists isn't a coincidence... Emil