Post

Replies

Boosts

Views

Activity

Reply to Problem with C++ header using whatever IDE or editor
When i run that from terminal,it displays- /tmp/codelite-exec.sh ; exit; thisisirk@thisisirk ~ % /tmp/codelite-exec.sh ; exit; Hello Cruel World! Hit any key to continue... I again tried to completely run the code from terminal. So I created a file named hello.cpp from Codelite and ran it via the terminal using instructions from both Eskimo and online- outputs from Eskimo's instructions- #include <iostream> int main() { std::cout << "Hello Cruel World!\n"; } ~ % clang++ -o hello hello.cpp ~ % ./hello Hello Cruel World! Using online instructions- ~ % g++ -o hello hello.cpp ~ % ls -la total 176 ... -rwxr-xr-x 1 thisisirk staff 39730 Sep 11 12:58 hello -rw-r--r-- 1 thisisirk staff 78 Sep 11 12:53 hello.cpp drwxr-xr-x 3 thisisirk staff 96 Sep 8 17:05 hello.dSYM ... ~ % ./hello Hello Cruel World! Seems like both methods working fine. What should I do now?
Sep ’23
Reply to Problem with C++ header using whatever IDE or editor
I'm trying to post what I got while running the code from the sample project workspace from terminal- /tmp/codelite-exec.sh ; exit; ~ % /tmp/codelite-exec.sh ; exit; Hello Cruel World! Hit any key to continue... I again tried to completely run the code from terminal. So I created a file named hello.cpp from Codelite and ran it via the terminal using instructions from both Eskimo and online- outputs from Eskimo's instructions- ~ % cat hello.cpp #include <iostream> int main() { std::cout << "Hello Cruel World!\n"; } ~ % clang++ -o hello hello.cpp ~ % ./hello Hello Cruel World! Using online instructions- ~ % g++ -o hello hello.cpp ~ % ls -la total 176 ... -rwxr-xr-x 1 thisisirk staff 39730 Sep 11 12:58 hello -rw-r--r-- 1 thisisirk staff 78 Sep 11 12:53 hello.cpp drwxr-xr-x 3 thisisirk staff 96 Sep 8 17:05 hello.dSYM ... ~ % ./hello Hello Cruel World! Seems like both methods working fine. What should I do now?
Sep ’23
Reply to Problem with C++ header using whatever IDE or editor
Thanks endecotp for your reply. I have provided these commands and results- %cat hello.cpp #include <iostream> int main() { std::cout << "Hello Cruel World!\n"; } % clang++ -o hello hello.cpp % ./hello Hello Cruel World! These were run via terminal. Were you asking about these? Also here are the outputs- Please provide me simple instructions, I'm really at a loss what to do anything excluding these......
Sep ’23
Reply to Problem with C++ header using whatever IDE or editor
Extremely sorry Eskimo for late reply... I tried your C++ example- #include <iostream> int main() { std::cout << "Hello Cruel World!\n"; } And here are the results- %cat hello.cpp #include <iostream> int main() { std::cout << "Hello Cruel World!\n"; } % clang++ -o hello hello.cpp % ./hello Hello Cruel World! This time it builds fine, but now when I try it in a workspace opened in CodeBlocks IDE(which I regularly have to do), it produces the same error at that 'no member named "nullptr_t" found in the global namespace'. I don't have any idea why it's not working in any workspaces because I try to do exactly what my instructor at Udemy tells. But it works when I create the hello.cpp file via any IDEs or text editor like nano etc. It shows errors like these-(I'm providing them as screenshots as warnings my IDE shows can not be copied)
Sep ’23
Reply to Problem with C++ header using whatever IDE or editor
Still no reply from anyone. What should I do?
Replies
Boosts
Views
Activity
Sep ’23
Reply to Problem with C++ header using whatever IDE or editor
I ran that, but it just gave the same outputs- Here- /tmp/codelite-exec.sh ; exit; ~ % /tmp/codelite-exec.sh ; exit; Hello Cruel World! Hit any key to continue... What do you think the problem is?
Replies
Boosts
Views
Activity
Sep ’23
Reply to Problem with C++ header using whatever IDE or editor
When i run that from terminal,it displays- /tmp/codelite-exec.sh ; exit; thisisirk@thisisirk ~ % /tmp/codelite-exec.sh ; exit; Hello Cruel World! Hit any key to continue... I again tried to completely run the code from terminal. So I created a file named hello.cpp from Codelite and ran it via the terminal using instructions from both Eskimo and online- outputs from Eskimo's instructions- #include <iostream> int main() { std::cout << "Hello Cruel World!\n"; } ~ % clang++ -o hello hello.cpp ~ % ./hello Hello Cruel World! Using online instructions- ~ % g++ -o hello hello.cpp ~ % ls -la total 176 ... -rwxr-xr-x 1 thisisirk staff 39730 Sep 11 12:58 hello -rw-r--r-- 1 thisisirk staff 78 Sep 11 12:53 hello.cpp drwxr-xr-x 3 thisisirk staff 96 Sep 8 17:05 hello.dSYM ... ~ % ./hello Hello Cruel World! Seems like both methods working fine. What should I do now?
Replies
Boosts
Views
Activity
Sep ’23
Reply to Problem with C++ header using whatever IDE or editor
Eskimo did you see my latest terminal outputs I posted? If so, please help with your instructions....
Replies
Boosts
Views
Activity
Sep ’23
Reply to Problem with C++ header using whatever IDE or editor
Can anyone help me out? This problem still exists...
Replies
Boosts
Views
Activity
Sep ’23
Reply to Problem with C++ header using whatever IDE or editor
I'm trying to post what I got while running the code from the sample project workspace from terminal- /tmp/codelite-exec.sh ; exit; ~ % /tmp/codelite-exec.sh ; exit; Hello Cruel World! Hit any key to continue... I again tried to completely run the code from terminal. So I created a file named hello.cpp from Codelite and ran it via the terminal using instructions from both Eskimo and online- outputs from Eskimo's instructions- ~ % cat hello.cpp #include <iostream> int main() { std::cout << "Hello Cruel World!\n"; } ~ % clang++ -o hello hello.cpp ~ % ./hello Hello Cruel World! Using online instructions- ~ % g++ -o hello hello.cpp ~ % ls -la total 176 ... -rwxr-xr-x 1 thisisirk staff 39730 Sep 11 12:58 hello -rw-r--r-- 1 thisisirk staff 78 Sep 11 12:53 hello.cpp drwxr-xr-x 3 thisisirk staff 96 Sep 8 17:05 hello.dSYM ... ~ % ./hello Hello Cruel World! Seems like both methods working fine. What should I do now?
Replies
Boosts
Views
Activity
Sep ’23
Reply to Problem with C++ header using whatever IDE or editor
Sorry for misunderstanding Endecotp. Here are the full screenshots of the build- What should I do now?
Replies
Boosts
Views
Activity
Sep ’23
Reply to Problem with C++ header using whatever IDE or editor
Thanks endecotp for your reply. I have provided these commands and results- %cat hello.cpp #include <iostream> int main() { std::cout << "Hello Cruel World!\n"; } % clang++ -o hello hello.cpp % ./hello Hello Cruel World! These were run via terminal. Were you asking about these? Also here are the outputs- Please provide me simple instructions, I'm really at a loss what to do anything excluding these......
Replies
Boosts
Views
Activity
Sep ’23
Reply to Problem with C++ header using whatever IDE or editor
Extremely sorry Eskimo for late reply... I tried your C++ example- #include <iostream> int main() { std::cout << "Hello Cruel World!\n"; } And here are the results- %cat hello.cpp #include <iostream> int main() { std::cout << "Hello Cruel World!\n"; } % clang++ -o hello hello.cpp % ./hello Hello Cruel World! This time it builds fine, but now when I try it in a workspace opened in CodeBlocks IDE(which I regularly have to do), it produces the same error at that 'no member named "nullptr_t" found in the global namespace'. I don't have any idea why it's not working in any workspaces because I try to do exactly what my instructor at Udemy tells. But it works when I create the hello.cpp file via any IDEs or text editor like nano etc. It shows errors like these-(I'm providing them as screenshots as warnings my IDE shows can not be copied)
Replies
Boosts
Views
Activity
Sep ’23