megatokio / libraries Goto Github PK
View Code? Open in Web Editor NEWc++ libraries required for all of my projects
License: Other
c++ libraries required for all of my projects
License: Other
I have just cloned for Pi and kicked off make to get the following:
pi@raspberrypi:~/zasm/zasm $ make
mkdir -p tmp
g++ -c -pipe -Os -Wall -W -fPIE -DNDEBUG -DRELEASE -Wno-multichar -std=c++11 -I. -ISource -ILibraries -o tmp/cstrings.o Libraries/cstrings/cstrings.cpp
In file included from Libraries/kio/kio.h:346:0,
from Libraries/cstrings/cstrings.cpp:19:
Libraries/cstrings/cstrings.h: In function ‘char* hexstr(long long int, uint)’:
Libraries/cstrings/cstrings.h:144:13: error: redefinition of ‘char* hexstr(long long int, uint)’
inline str hexstr (long long n, uint len) noexcept { return hexstr(uint64(n),len); }
^
Libraries/cstrings/cstrings.h:142:13: note: ‘char* hexstr(int64, uint)’ previously defined here
inline str hexstr (int64 n, uint len) noexcept { return hexstr(uint64(n),len); }
^
Libraries/cstrings/cstrings.cpp: In function ‘char* hexstr(uint64, uint)’:
Libraries/cstrings/cstrings.cpp:283:5: error: redefinition of ‘char* hexstr(uint64, uint)’
str hexstr (uint64 n, uint digits) noexcept
^
In file included from Libraries/kio/kio.h:346:0,
from Libraries/cstrings/cstrings.cpp:19:
Libraries/cstrings/cstrings.h:145:13: note: ‘char* hexstr(long long unsigned int, uint)’ previously defined here
inline str hexstr (unsigned long long n, uint len) noexcept { return hexstr(uint64(n),len); }
^
Makefile:68: recipe for target 'tmp/cstrings.o' failed
make: *** [tmp/cstrings.o] Error 1
�
Anything else I need to set up for pi?
In file included from Libraries/kio/auto_config.h:34,
from Libraries/kio/kio.h:55,
from Libraries/cstrings/cstrings.cpp:19:
Libraries/kio/detect_configuration.h:300:4: error: #error "can't detect processor"
#error "can't detect processor"
^~~~~
In file included from Libraries/kio/auto_config.h:34,
from Libraries/kio/kio.h:55,
from Libraries/cstrings/cstrings.cpp:19:
Libraries/kio/detect_configuration.h:386:33: error: ‘_sizeof_char’ was not declared in this scope
static_assert(sizeof(char) == _sizeof_char, "Size is not correct");
^~~~~~~~~~~~
Libraries/kio/detect_configuration.h:387:33: error: ‘_sizeof_short’ was not declared in this scope
static_assert(sizeof(short) == _sizeof_short, "Size is not correct");
When cloning Libraries:
I don't know yet if this is relevant to the project compilation but I'll give it a shot soon.
For some reason (maybe easy compatibility with x86?) the long double
type on a new MacBook Pro M2 is 8 and not 16.
I'm building from the root of the zasm
repository, with Libraries
checked out as a submodule.
% make
g++ -c -pipe -Os -Wall -W -fPIE -DNDEBUG -DRELEASE -Wno-multichar -std=c++11 -I. -ISource -ILibraries -o tmp/cstrings.o Libraries/cstrings/cstrings.cpp
In file included from Libraries/cstrings/cstrings.cpp:5:
In file included from Libraries/cstrings/cstrings.h:6:
In file included from Libraries/kio/kio.h:44:
In file included from Libraries/kio/auto_config.h:21:
Libraries/kio/detect_configuration.h:426:1: error: static_assert failed due to requirement 'sizeof(long double) == 16' "Size is not correct"
static_assert(sizeof(long double) == _sizeof_long_double, "Size is not correct");
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
make: *** [tmp/cstrings.o] Error 1
Apple mentions it in their own porting guide: https://developer.apple.com/documentation/xcode/writing-arm64-code-for-apple-platforms#Handle-data-types-and-data-alignment-properly
Thank you for the great assembler! I have used it for a bunch of projects and look forward to using it for many more.
Hi kio,
Thanks so much for your great program zasm! I've used it and compiled
it on Linux and really think it's an awesome program. I tried to
compile zasm on OpenBSD using both clang and gcc and ran into some
errors, I've attached the logs for reference. I'd love to be able to
help port zasm, but my unix programming is still a bit weak. Please
let me know if I can help.
-Asad
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.