|
Post by AnthroHeart on May 23, 2021 11:53:27 GMT
If you want to make small changes to the source code, and recompile, here is the command for compiling:
clang++ -O3 -Wall -static ./intention_repeater_max.cpp -o ./intention_repeater_max.exe
You will need the clang compiler for this. Feel free to use any compiler you wish.
The -O3 option tells the compiler to use max optimization. This helps it run the fastest.
The -static option tells the compiler to link in all necessary libraries. This allows you to distribute your .exe file.
The -o option indicates the file we are outputting to.
The -Wall option does a really strong error checking while compiling. It will check for certain errors like a variable not being used but created. These don't really affect performance or runtime, but are good to clear up if you want your code more optimal. This is good if you want to really clear all possible inefficiencies.
I have compiled my Intention Repeater and the Nesting Files Creation Utility with the -Wall option and they are error free.
My old Python Repeater made it into the gitHub Arctic Code Vault. I read some people who their buggy "hello world" and such made it too and they didn't like that cause their code wouldn't even compile.
Everything I post to gitHub I make sure it compiles. Though it may still have bugs.
To compile the Nesting Files Creation Utility, you would do:
clang++ -O3 -Wall -static ./Repeater_Nesting_Utility.cpp -o ./Repeater_Nesting_Utility.exe
|
|
|
Post by AnthroHeart on May 23, 2021 12:05:55 GMT
If you are on a Debian variant of Linux, here are some notes:
To view the MinGW compilers available:
apt-cache search mingw | grep g++
My output:
g++-mingw-w64 - GNU C++ compiler for MinGW-w64 g++-mingw-w64-i686 - GNU C++ compiler for MinGW-w64 targeting Win32 g++-mingw-w64-x86-64 - GNU C++ compiler for MinGW-w64 targeting Win64 libconfig++-dev - parsing/manipulation of structured config files (C++ development) libconfig++9v5 - parsing/manipulation of structured configuration files (C++ binding)
To install the GNU C++ compiler for MinGW-w64, which is the one I use for making Windows binaries:
sudo apt-get install g++-mingw-w64
And to compile in a Debian variant of Linux (for creating a Windows binary), I use:
/usr/bin/x86_64-w64-mingw32-g++-win32 -O3 -Wall -static ./intention_repeater_max.cpp -o ./intention_repeater_max.exe
|
|
|
Post by AnthroHeart on May 24, 2021 22:40:33 GMT
You can also use Visual Studio Code, and it will compile the code for you.
|
|