Hello Harald,
could you edit tkImgSVGnano.c and add:
#include <math.h>
just after "#include "tkInt.h" and restest.
Thank you very much
René
-----Ursprüngliche Nachricht-----
Von: Harald Oehlmann [mailto:hara...@elmicron.de]
Gesendet: Mittwoch, 13. Juni 2018 15:28
An: tcl-...@lists.sourceforge.net
Betreff: Re: [TCLCORE] Tip 507 nanosvg support
Am 13.06.2018 um 14:35 schrieb a...@logic.at:
>>> The branch tip-507 should be rebased from trunk to core-8-branch, as>>> the tip targets 8.7.>> No. The tip-507 branch already is a spin-off from trunk.>> for Harald:> Unlike Tcl's 9.* trunk, Tk's trunk is still 8.*
Yes, thank you.
I think, it is to early for dummies like me.
I tried to compile it without success...
I did many things to include "math.h" but no success....
Anyway thank you,
Harald
Here is the log with ms-vc6 + PDSK2003 on 32 bit:
tcl trunk core-8-branch -> compiles and installs well tk tip 507 branch:
nmake -f makefile.vc TCLDIR=c:\test\tcl8.7a1-fbbcad33be
cl -nologo -c /D_ATL_XP_TARGETING /DUNICODE /D_UNICODE -W3 -FpC:\test\tk8.7a1-tip507-226b79e3\win\Release\tk_Dynamic\ -Op -QI0f -O2 -YX -MD -I"c:\test\tcl8.7a1-fbbcad33be\generic"
-I"c:\test\tcl8.7a1-fbbcad33be\win"
-I"C:\test\tk8.7a1-tip507-226b79e3\win\..\win"
-I"C:\test\tk8.7a1-tip507-226b79e3\win\..\generic"
-I"C:\test\tk8.7a1-tip507-226b79e3\win\..\bitmaps"
-I"C:\test\tk8.7a1-tip507-226b79e3\win\..\xlib" -DBUILD_ttk
-DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1
-DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1
-DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DSUPPORT_CONFIG_EMBEDDED -DHAVE_UXTHEME_H=1 -Dinline=__inline -D _CRT_SECURE_NO_DEPRECATE -D _CRT_NONSTDC_NO_DEPRECATE -DTCL_CFGVAL_ENCODING=\"cp1252\" -DSTDC_HEADERS -DNDEBUG -DTCL_CFG_OPTIMIZED -DNO_STRTOI64 -DUSE_TCL_STUBS -DUSE_TCLOO_STUBS -DBUILD_tk -FoC:\test\tk8.7a1-tip507-226b79e3\win\Release\tk_Dynamic\
@C:\Users\oehhar\AppData\Local\Temp\nm23E5.tmp
tkImgSVGnano.c
C:\test\tk8.7a1-tip507-226b79e3\win\..\generic\nanosvg.h(514) : warning
C4013: 'tanf' undefined; assuming extern returning int
C:\test\tk8.7a1-tip507-226b79e3\win\..\generic\nanosvg.h(514) : warning
C4244: '=' : conversion from 'int ' to 'float ', possible loss of data
C:\test\tk8.7a1-tip507-226b79e3\win\..\generic\nanosvg.h(520) : warning
C4244: '=' : conversion from 'int ' to 'float ', possible loss of data
C:\test\tk8.7a1-tip507-226b79e3\win\..\generic\nanosvg.h(527) : warning
C4013: 'cosf' undefined; assuming extern returning int
C:\test\tk8.7a1-tip507-226b79e3\win\..\generic\nanosvg.h(527) : warning
C4244: 'initializing' : conversion from 'int ' to 'float ', possible loss of data
C:\test\tk8.7a1-tip507-226b79e3\win\..\generic\nanosvg.h(527) : warning
C4013: 'sinf' undefined; assuming extern returning int
C:\test\tk8.7a1-tip507-226b79e3\win\..\generic\nanosvg.h(527) : warning
C4244: 'initializing' : conversion from 'int ' to 'float ', possible loss of data
C:\test\tk8.7a1-tip507-226b79e3\win\..\generic\nanosvg.h(827) : warning
C4013: 'sqrtf' undefined; assuming extern returning int
C:\test\tk8.7a1-tip507-226b79e3\win\..\generic\nanosvg.h(827) : warning
C4244: 'return' : conversion from 'int ' to 'float ', possible loss of data
C:\test\tk8.7a1-tip507-226b79e3\win\..\generic\nanosvg.h(900) : warning
C4244: '=' : conversion from 'int ' to 'float ', possible loss of data
C:\test\tk8.7a1-tip507-226b79e3\win\..\generic\nanosvg.h(943) : warning
C4244: 'initializing' : conversion from 'int ' to 'float ', possible loss of data
C:\test\tk8.7a1-tip507-226b79e3\win\..\generic\nanosvg.h(944) : warning
C4244: 'initializing' : conversion from 'int ' to 'float ', possible loss of data
C:\test\tk8.7a1-tip507-226b79e3\win\..\generic\nanosvg.h(1132) : error
C2632: 'long' followed by 'long' is illegal
C:\test\tk8.7a1-tip507-226b79e3\win\..\generic\nanosvg.h(1146) : warning
C4013: '_strtoi64' undefined; assuming extern returning int
C:\test\tk8.7a1-tip507-226b79e3\win\..\generic\nanosvg.h(1745) : warning
C4013: 'fabsf' undefined; assuming extern returning int
C:\test\tk8.7a1-tip507-226b79e3\win\..\generic\nanosvg.h(1745) : warning
C4244: '=' : conversion from 'int ' to 'float ', possible loss of data
C:\test\tk8.7a1-tip507-226b79e3\win\..\generic\nanosvg.h(2112) : warning
C4244: 'return' : conversion from 'int ' to 'float ', possible loss of data
C:\test\tk8.7a1-tip507-226b79e3\win\..\generic\nanosvg.h(2124) : warning
C4013: 'acosf' undefined; assuming extern returning int
C:\test\tk8.7a1-tip507-226b79e3\win\..\generic\nanosvg.h(2140) : warning
C4244: '=' : conversion from 'int ' to 'float ', possible loss of data
C:\test\tk8.7a1-tip507-226b79e3\win\..\generic\nanosvg.h(2141) : warning
C4244: '=' : conversion from 'int ' to 'float ', possible loss of data
C:\test\tk8.7a1-tip507-226b79e3\win\..\generic\nanosvg.h(2157) : warning
C4244: '=' : conversion from 'int ' to 'float ', possible loss of data
C:\test\tk8.7a1-tip507-226b79e3\win\..\generic\nanosvg.h(2166) : warning
C4244: '=' : conversion from 'int ' to 'float ', possible loss of data
C:\test\tk8.7a1-tip507-226b79e3\win\..\generic\nanosvg.h(2167) : warning
C4244: '=' : conversion from 'int ' to 'float ', possible loss of data
C:\test\tk8.7a1-tip507-226b79e3\win\..\generic\nanosvg.h(2176) : warning
C4244: '=' : conversion from 'int ' to 'float ', possible loss of data
C:\test\tk8.7a1-tip507-226b79e3\win\..\generic\nanosvg.h(2186) : warning
C4244: '=' : conversion from 'int ' to 'float ', possible loss of data
C:\test\tk8.7a1-tip507-226b79e3\win\..\generic\nanosvg.h(2221) : warning
C4244: '=' : conversion from 'int ' to 'float ', possible loss of data
C:\test\tk8.7a1-tip507-226b79e3\win\..\generic\nanosvg.h(2227) : warning
C4244: '=' : conversion from 'int ' to 'float ', possible loss of data
C:\test\tk8.7a1-tip507-226b79e3\win\..\generic\nanosvg.h(2228) : warning
C4244: '=' : conversion from 'int ' to 'float ', possible loss of data
C:\test\tk8.7a1-tip507-226b79e3\win\..\generic\nanosvg.h(2391) : warning
C4244: '=' : conversion from 'int ' to 'float ', possible loss of data
C:\test\tk8.7a1-tip507-226b79e3\win\..\generic\nanosvg.h(2392) : warning
C4244: '=' : conversion from 'int ' to 'float ', possible loss of data
C:\test\tk8.7a1-tip507-226b79e3\win\..\generic\nanosvg.h(2441) : warning
C4244: '=' : conversion from 'int ' to 'float ', possible loss of data
C:\test\tk8.7a1-tip507-226b79e3\win\..\generic\nanosvg.h(2472) : warning
C4244: '=' : conversion from 'int ' to 'float ', possible loss of data
C:\test\tk8.7a1-tip507-226b79e3\win\..\generic\nanosvg.h(2473) : warning
C4244: '=' : conversion from 'int ' to 'float ', possible loss of data
C:\test\tk8.7a1-tip507-226b79e3\win\..\generic\nanosvgrast.h(335) :
warning C4244: 'initializing' : conversion from 'int ' to 'float ', possible loss of data
C:\test\tk8.7a1-tip507-226b79e3\win\..\generic\nanosvgrast.h(564) :
warning C4013: 'atan2f' undefined; assuming extern returning int
C:\test\tk8.7a1-tip507-226b79e3\win\..\generic\nanosvgrast.h(564) :
warning C4244: 'initializing' : conversion from 'int ' to 'float ', possible loss of data
C:\test\tk8.7a1-tip507-226b79e3\win\..\generic\nanosvgrast.h(565) :
warning C4244: 'initializing' : conversion from 'int ' to 'float ', possible loss of data
C:\test\tk8.7a1-tip507-226b79e3\win\..\generic\nanosvgrast.h(572) :
warning C4013: 'ceilf' undefined; assuming extern returning int
C:\test\tk8.7a1-tip507-226b79e3\win\..\generic\nanosvgrast.h(802) :
warning C4013: 'fmodf' undefined; assuming extern returning int
C:\test\tk8.7a1-tip507-226b79e3\win\..\generic\nanosvgrast.h(802) :
warning C4244: '=' : conversion from 'int ' to 'float ', possible loss of data
C:\test\tk8.7a1-tip507-226b79e3\win\..\generic\nanosvgrast.h(815) :
warning C4244: 'initializing' : conversion from 'int ' to 'float ', possible loss of data
C:\test\tk8.7a1-tip507-226b79e3\win\..\generic\nanosvgrast.h(887) :
warning C4013: 'floorf' undefined; assuming extern returning int
C:\test\tk8.7a1-tip507-226b79e3\win\..\generic\nanosvgrast.h(1096) :
warning C4244: '=' : conversion from 'int ' to 'float ', possible loss of data NMAKE : fatal error U1077: 'cl' : return code '0x2'
Stop.
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________
Tcl-Core mailing list
Tcl-...@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tcl-core
Kernkraftwerk Goesgen-Daeniken AG
CH-4658 Daeniken, Switzerland
Diese Nachricht (inkl. Anhaenge) beinhaltet moeglicherweise vertrauliche oder gesetzlich geschuetzte Daten oder Informationen. Zum Empfang derselben ist (sind) ausschliesslich die genannte(n) Person(en) bestimmt. Falls Sie diese Nachricht irrtuemlicherweise erreicht hat, sind Sie hoeflich gebeten, diese unter Ausschluss jeder Reproduktion zu vernichten und den Absender umgehend zu benachrichtigen. Besten Dank.
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Tcl-Core mailing list
Tcl-...@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tcl-core