i am trying to style with a CSS-File but i try to compile i get the error:
./src/formular/MainForm.cpp(306): error C2026: string too big, trailing characters truncated
The complete stylesheet is compiled to one line in the “MainForm.cpp” and this is too long for one line.
Is there a workaround or is this a bug?
Oh wow, thats interesting… how big is the css file?? Can you provide the css file and the app?
The css file is about 430 lines of code.
Here is a minimal testcase with the css file:
I get the same compilation error with openfl.
There is, presumably, some upper limit of how big a haxe.Resource can be in hxcpp… thats a guess at least, i know a haxe.Resource turns into a huge string (essentially) in the actual .cpp files… so thats likely the issue.
My advice would be to break your .css files up a little (as im fairly sure this is something haxeui is going to be able to handle) - maybe use a module also?
Ill check out your css file now… 430 lines doesnt seem too big to be fair
EDIT: can you upload the css file again? its gone from your DB
Meh, really doesnt seem that big at all… what version of haxe? hxcpp? OS? c++ compiler? etc…
OS: Windows 10
c++: Version 2017
openfl: Latest version from haxelib downloaded yesterday