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

Trouble Compiling v1.1.4f #90

Open
RoyUnderwoodAbramski opened this issue Apr 29, 2024 · 2 comments
Open

Trouble Compiling v1.1.4f #90

RoyUnderwoodAbramski opened this issue Apr 29, 2024 · 2 comments

Comments

@RoyUnderwoodAbramski
Copy link

I receive this error when compililng:

g++ -c -O2 -D_FILE_OFFSET_BITS=64 entry.cpp -o entry.o
entry.cpp: In member function ‘void entry::make_typed_float_vector(std::vector&, const string&, int)’:
entry.cpp:592:43: error: narrowing conversion of ‘128’ from ‘int’ to ‘char’ [-Wnarrowing]
592 | char missing[4] = {0x01, 0x00, 0x80, 0x7F};
| ^
entry.cpp:593:39: error: narrowing conversion of ‘128’ from ‘int’ to ‘char’ [-Wnarrowing]
593 | char end[4] = {0x02, 0x00, 0x80, 0x7F};
| ^
entry.cpp: In member function ‘void entry::make_typed_float_vector(std::vector&, const std::vector<std::__cxx11::basic_string >&, int)’:
entry.cpp:655:43: error: narrowing conversion of ‘128’ from ‘int’ to ‘char’ [-Wnarrowing]
655 | char missing[4] = {0x01, 0x00, 0x80, 0x7F};
| ^
entry.cpp:656:39: error: narrowing conversion of ‘128’ from ‘int’ to ‘char’ [-Wnarrowing]
656 | char end[4] = {0x02, 0x00, 0x80, 0x7F};
| ^
entry.cpp: In member function ‘bool entry::check_missing(unsigned int, unsigned int, const std::vector&)’:
entry.cpp:870:56: error: narrowing conversion of ‘128’ from ‘int’ to ‘char’ [-Wnarrowing]
870 | static char missing_float[4] = {0x01, 0x00, 0x80, 0x7F};
| ^
entry.cpp:872:43: error: narrowing conversion of ‘128’ from ‘int’ to ‘char’ [-Wnarrowing]
872 | static char missing_int2[2] = {0x00, 0x80};
| ^
entry.cpp:873:55: error: narrowing conversion of ‘128’ from ‘int’ to ‘char’ [-Wnarrowing]
873 | static char missing_int3[4] = {0x00, 0x00, 0x00, 0x80};
| ^
entry.cpp: In member function ‘bool entry::check_end(unsigned int, unsigned int, const std::vector&)’:
entry.cpp:929:52: error: narrowing conversion of ‘128’ from ‘int’ to ‘char’ [-Wnarrowing]
929 | static char end_float[4] = {0x02, 0x00, 0x80, 0x7F};
| ^
entry.cpp:931:39: error: narrowing conversion of ‘128’ from ‘int’ to ‘char’ [-Wnarrowing]
931 | static char end_int2[2] = {0x01, 0x80};
| ^
entry.cpp:932:51: error: narrowing conversion of ‘128’ from ‘int’ to ‘char’ [-Wnarrowing]
932 | static char end_int3[4] = {0x01, 0x00, 0x00, 0x80};
| ^
make: *** [Makefile:50: entry.o] Error 1

This error also occurs on version 2.
Please advise, Thank You!

@lskatz
Copy link
Owner

lskatz commented May 2, 2024

Version 2 is alpha. Can you try v1.1.4f?

@RoyUnderwoodAbramski
Copy link
Author

Please look at the title of this issue: it indicates: Trouble Compiling v1.1.4f

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