Closed rodingbao closed 10 months ago
What exactly doesn't work? Your code produce compile error, runtime error, silently doesn't work as expected?
First of all do it outside the loop, like I'd showed in this issue - #165
compile error, message as below.
C:/TDM-GCC-64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../build-Release/family/main.cpp.o:main.cpp:(.rdata$.refptr.wxChartsDefaultTheme[.refptr.wxChartsDefaultTheme]+0x0): undefined reference to `wxChartsDefaultTheme'
compile error, message as below. C:/TDM-GCC-64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../build-Release/family/main.cpp.o:main.cpp:(.rdata$.refptr.wxChartsDefaultTheme[.refptr.wxChartsDefaultTheme]+0x0): undefined reference to `wxChartsDefaultTheme'
Re-check that you're using correct version of the library
I download source code (master branch,https://codeload.github.com/wxIshiko/wxCharts/zip/refs/heads/main) from git, and complier the lib by myself, do you mean that my download link is incorrect?
when I link with the static lib, the error disappered. dont know what happend. just close the issue.
Best regards BZG