$ git clone http://gcodetool.ion.nu/gcodetool.git
commit da401e3e240d27f104ee3e6f29ba6d8d1dc7eed8
Author: Alicia <...>
Date:   Sun Jul 7 00:43:08 2019 +0200

    Foolproofing and more portability fixes.

diff --git a/info.c b/info.c
index 36bca32..cff5b44 100644
--- a/info.c
+++ b/info.c
@@ -97,7 +97,7 @@ int gtool_info(const char* filename)
       if(!isnan(zval)){minmax(&z, zval);}
       if(!move && isnan(zval) && !isnan(eval) && (retraction.min<0 || eval<e.last)) // First retraction must be E-n
       {
-        static double eval_=nan(""); // Buffer to ignore the last E motion, which often isn't indicative of general retractions
+        static double eval_=NAN; // Buffer to ignore the last E motion, which often isn't indicative of general retractions
         if(!isnan(eval_))
         {
           // TODO: count number of retractions?
diff --git a/main.c b/main.c
index 8149443..a82fb5a 100644
--- a/main.c
+++ b/main.c
@@ -56,6 +56,13 @@ int main(int argc, char** argv)
 "remove (exclude parts of the object)\n"
 "preview, somehow\n"
 "scale (will also need to scale E)\n", argv[0]);
+#ifdef WIN32 // Foolproofing
+    if(argc==1)
+    {
+      printf("\nNOTE: gcodetool is a commandline tool. Do not expect to use it through a GUI\n");
+      system("pause");
+    }
+#endif
     return 1;
   }
   return 0;