Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compiler error for Android target when image files start with a number? #1876

Closed
nightblade9 opened this issue Apr 19, 2018 · 2 comments
Closed

Comments

@nightblade9
Copy link

nightblade9 commented Apr 19, 2018

I have various image files with numbers in their names, such as 3alima.png. When I run lime build android, I get various compiler errors that look like this:

include/AssetPaths.h:73:19: error: invalid suffix "ad__png" on integer constant
include/AssetPaths.h:74:19: error: invalid suffix "alima__png" on integer constant
include/AssetPaths.h:75:19: error: invalid suffix "amila__png" on integer constant
include/AssetPaths.h:76:19: error: invalid suffix "asaa__png" on integer constant
include/AssetPaths.h:77:19: error: invalid suffix "aynun__png" on integer constant
include/AssetPaths.h:78:19: error: invalid suffix "afidha__png" on integer constant

For reference, here are lines 73-78 of the generated AssetPaths.cpp after a clean/rebuild:

::String AssetPaths_obj::3amila__png;

::String AssetPaths_obj::3asaa__png;

::String AssetPaths_obj::3aynun__png;

I think this is because these image files start with a number. I can definitely rename them and report back if that fixes the problem.

@Gama11
Copy link
Member

Gama11 commented Apr 19, 2018

Sounds like a duplicate of HaxeFlixel/flixel#1796?

@nightblade9
Copy link
Author

'Tis indeed a dupe of that hoary old bug from 2016. The work-around is pretty simple, so I'll just go ahead and close this. It looks like someone is working on the Haxe issue anyway.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants