Hey Ian,
i am trying to style with a CSS-File but i try to compile i get the error:
Error: MainForm.cpp
./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?
Cheers,
Domi
Oh wow, thats interesting… how big is the css file?? Can you provide the css file and the app?
Cheers,
Ian
The css file is about 430 lines of code.
Here is a minimal testcase with the css file:
https://drive.google.com/file/d/1MfEDTsJMVTBSKRUdrpDa0s7YXHISrcG1/view?usp=sharing
Cheers,
Domi
1 Like
I get the same compilation error with openfl.
Cheers,
Domi
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…
Ian
Haxe: 4.2.0-rc.1+64c5ec461
OS: Windows 10
hxcpp: git
c++: Version 2017
openfl: Latest version from haxelib downloaded yesterday
Cheers,
Domi