Fix Linux 64bit GCC compilation, adjust Makefile #19
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There are still lots of warnings, mostly related to dangerous casts, but it compiles and is able to show the help output with GCC 5.2.0.
Makefile
COMPILER_OPTIONS
was replaced with the standard convention ofCXXFLAGS
for C++ files.LINKER_OPTIONS
was replaced with the standard convention ofLDFLAGS
.g++
was replaced with$(CXX)
, which by default isg++
for GNU Make.all
was made a phony target due to not creating an output named "all".clean
was added, which calls$(RM)
(equivalent torm -f
in GNU Make by default) on the output files.-march=core2
with-march=native
. Closes issue -march=core2 shouldn't be in the make file #13.Code
this->
.is_power_of_2
into a template to solve ambiguity errors related to calling it withsize_t
.size_t
touint32
in one place to resolve an ambiguity error. Might be incorrect, but I'm not knowledgeable enough with C++ to propose a cleaner fix.All in all, most likely closes issue #10.