-
Notifications
You must be signed in to change notification settings - Fork 7
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
calculatorgui_impl.cpp changes for Windows compile #13
Comments
Previously I would go around this by running the bash script to change out the character. You can use ifdefs: This would be the way to do it: #endif |
Thanks, I git clone ..saltypaws\calculator and then made a new branch "cross-compile" I'll try some more in the morning.
|
I have made it work before. This is another example (https://blog.tartanllama.xyz/if-constexpr/) //Translate the macros to C++ at a single point in the application void do_something() {
} |
Thanks wally. Now closing this. opened another. |
Walter, the changes to the current version of calculatorgui_impl.cpp which are needed to allow Windows to compile are below.
I've compared the Linux version side by side with the Windows version (One of the commented out sections may not be needed to be commented out at Line 340.)
Is there a way to make this file cross compile with Windows and Linux?
The line numbers use the Linux version on your repository from calculatorgui_impl.cpp.
LINE 340 Comment out
LINE 351 Replace Existing MuParser lines with this
LINE 806 Comment out
LINE 810 Add
NOTE: Making these changes to the file results in Linux Compile Errors. Is there some way to program this to be cross compiling with both Windows and Linux? It would be a big help.
The text was updated successfully, but these errors were encountered: