I moved the library files to my project, tried to build it and got this error.
Error - [Makefile.Debug:4179: debug/qcustomplot.o] Error 1
I moved the library files to my project, tried to build it and got this error.
Error - [Makefile.Debug:4179: debug/qcustomplot.o] Error 1
I've never seen this error, so just a few thoughts:
6.6.0 is a preview version of Qt, newer than the latest QCustomPlot (2.1.1), so possibly not compatible with 2.1.1. Have you tried a release version?
Is this a compile-time error or link time? Does the .o file exist and not zero bytes?
4179 looks like a line number - what does that line in the makefile say?
Qt 6.5.0 is out, and I think I'm now seeing the same error with MinGW. Relase build is ok, but debug build fails. On the Creator compile output tab, I see the error
as.exe: debug\qcustomplot.o: too many sections (32946)
To fix, add the following to your .pro file when using MinGW:
QMAKE_CXXFLAGS += -Wa,-mbig-obj
Ty!! It work.
Just a quick update to this thread for anyone facing issues with 2.1.1 and Qt 6.5.0. I'm also using MingGW, and the QMAKE_CXXFLAGS declaration didn't completely solve my build issues (both release and debug).
I've commented out the savePDF() components (which seemed to be the cause of the build errors) in the header and source files and now I can build without issue.
Never mind my above comment, it looks like I hadn't added printsupport to my .pro file!