Commits

Anonymous committed bb6573b

bugfix link compilation problem -lm flag should came after

  • Participants
  • Parent commits 1dfa705

Comments (0)

Files changed (2)

File src/platform/desktop/Makefile

 	make -C ../../vm
 
 $(TARGET).out : $(OBJS) $(PM_LIB_PATH)
-	$(CC) -lm -o $@ $(OBJS) $(PM_LIB_PATH)
+	$(CC) -o $@ $(OBJS) $(PM_LIB_PATH) -lm 
 
 pmfeatures.h : pmfeatures.py $(PMGENPMFEATURES)
 	$(PMGENPMFEATURES) pmfeatures.py > $@

File src/vm/float.c

         case '-': r = x - y; break;
         case '*': r = x * y; break;
         case '/': r = x / y; break;
-        /*case '%': r = fmodf(x, y); break;
-        case 'P': r = powf(x, y); break;*/
+        case '%': r = fmodf(x, y); break;
+        case 'P': r = powf(x, y); break;
         default: r = 0.0; break;
         /* *INDENT-ON* */
     }