|
Post by hambumger1 on May 18, 2021 4:08:15 GMT
Just tried compiling, and now nothing happens after pressing enter.
|
|
|
Post by reden on May 18, 2021 4:16:50 GMT
Just tried compiling, and now nothing happens after pressing enter. Can you run "ls" (without the " ") to see if the executable file is there? You should see "intention_repeater_max_4.0" and run it as normal (./intention_repeater_max_4.0 and all the options you want). If there's nothing, you will have to redownload the file again, run "sed -i '24d' intention_repeater_max_4.0.cpp" (without the " "), and recompile.
|
|
|
Post by AnthroHeart on May 18, 2021 4:26:37 GMT
The include directive for <iostream> is already on the file. There's a block called #ifndef _WIN32 which means "the compiler shall include those files too if the platform is Windows." The issue is that for some reason it doesn't work and tries to include the menctioned files regardless if the platform is Windows or not. Since <iostream> was already in the file, I deleted the #include <bits...> line and the compile worked with no issues. #ifndef _WIN32 = Not Windows #ifdef _WIN32 = Windows
|
|
|
Post by AnthroHeart on May 18, 2021 4:27:36 GMT
Just tried compiling, and now nothing happens after pressing enter. Can you run "ls" (without the " ") to see if the executable file is there? You should see "intention_repeater_max_4.0" and run it as normal (./intention_repeater_max_4.0 and all the options you want). If there's nothing, you will have to redownload the file again, run "sed -i '24d' intention_repeater_max_4.0.cpp" (without the " "), and recompile. You got v4.0 to run on Android?
If so, is the text in color there too?
|
|
|
Post by reden on May 18, 2021 4:33:38 GMT
The include directive for <iostream> is already on the file. There's a block called #ifndef _WIN32 which means "the compiler shall include those files too if the platform is Windows." The issue is that for some reason it doesn't work and tries to include the menctioned files regardless if the platform is Windows or not. Since <iostream> was already in the file, I deleted the #include <bits...> line and the compile worked with no issues. #ifndef _WIN32 = Not Windows #ifdef _WIN32 = Windows
As previously menctioned in the thread, Clang does not contain <bits...>, it's GCC only. It does contain <iostream>, which seems to work about the same.
|
|
|
Post by reden on May 18, 2021 4:34:44 GMT
Can you run "ls" (without the " ") to see if the executable file is there? You should see "intention_repeater_max_4.0" and run it as normal (./intention_repeater_max_4.0 and all the options you want). If there's nothing, you will have to redownload the file again, run "sed -i '24d' intention_repeater_max_4.0.cpp" (without the " "), and recompile. You got v4.0 to run on Android?
If so, is the text in color there too?
Colour does work. Except black, with which you can't see the text (Termux's foreground is black, it can be changed with paid plugins or open source scripts).
|
|
|
Post by hambumger1 on May 18, 2021 4:37:29 GMT
I redownloaded and entered what you said, this is what comes up now:
clang-11: error: unknown argument: '-03'
|
|
|
Post by AnthroHeart on May 18, 2021 4:41:44 GMT
I redownloaded and entered what you said, this is what comes up now: clang-11: error: unknown argument: '-03' Are you compiling for Android or PC?
If you have Windows, I'm not sure how it compiles on there.
MinGW is a great compiler for Windows.
Clang++ is more for Linux I believe, but could be wrong.
|
|
|
Post by AnthroHeart on May 18, 2021 4:42:23 GMT
You got v4.0 to run on Android?
If so, is the text in color there too?
Colour does work. Except black, with which you can't see the text (Termux's foreground is black, it can be changed with paid plugins or open source scripts). Does it write the hololink files and run well?
|
|
|
Post by reden on May 18, 2021 4:42:25 GMT
I redownloaded and entered what you said, this is what comes up now: clang-11: error: unknown argument: '-03' It's "-O3", with a capital O, not a zero. It's a common confusion because in terminal fonts ("monospaced") they look about the same.
|
|
|
Post by reden on May 18, 2021 4:44:56 GMT
Colour does work. Except black, with which you can't see the text (Termux's foreground is black, it can be changed with paid plugins or open source scripts). Does it write the hololink files and run well? Yes to both.
|
|
|
Post by hambumger1 on May 18, 2021 4:47:53 GMT
I'm doing this on my Android. It's the only available option I have for now. Downloading the .cpp file goes smoothly, but compiling it is what gets the errors.
|
|
|
Post by reden on May 18, 2021 5:00:32 GMT
I'm doing this on my Android. It's the only available option I have for now. Downloading the .cpp file goes smoothly, but compiling it is what gets the errors. In the case I wasn't clear enough, the command you must run is "clang++ intention_repeater_max_4.0.cpp -O3 [not a zero] -o intention_repeater_max_4.0", without the [] and the " ".
|
|
|
Post by hambumger1 on May 18, 2021 5:07:59 GMT
Yup, that did it. TYSM.
|
|
|
Post by AnthroHeart on May 18, 2021 5:28:48 GMT
Ok, I fixed a few bugs in the flag system, and some spelling mistakes:
Version 4.1
It's also formatted, the code, using clang-format to LLVM specs.
Here are the runtime examples for the 3 compiled versions. The Linux time function tells how long it takes to run. Remember it takes a bit to load it into memory.
I'm missing like wine-gecko or something that would give the terminal color when emulating windows.
|
|