Closed se7uh closed 1 year ago
You really need to compile the .cpp into an executable (statically linked or not), before you can run The "usual" way is by something like that
g++ -O3 -Dunix zpaqfranz.cpp -pthread -o zpaqfranz -static
Or (if you have LLVM instead of gcc)
clang++ -O3 -Dunix zpaqfranz.cpp -pthread -o zpaqfranz -static
Please note: you are compiling "zpaqfranz.cpp" into "zpaqfranz" (without .cpp) Then you can run (without .cpp)
./zpaqfranz
What, exactly, "kind" of Linux you are using? You get a warning, not an error In fact a FAKE warning (as I write into the comment /// FAKE COMPILER WARNING) due to a bugged compiler (yes, compilers have bugs too)
Thanks it works
Please leave a review on sourceforge, then :)
PS if you made something like
cp ./zpaqfranz /bin/zpaqfranz
cp ./zpaqfranz /bin/dir
you not need, anymore, the "./zpaqfranz", but a "straight" zpaqfranz or dir
i'm trying to run code without compile, i got this error :
but, when i try to compile it. I always get this error (i have done trying compile it with gcc, g++ and clang, and the error is same)