All Questions
Tagged with g++ command-line
3
questions
0
votes
2
answers
388
views
Notepad++ NppExec: Redirect to file using '>' registers it as an argument and does not work, even though it works on the command line
Looking at the code below, it simply converts a c or c++ file, e.g. main.cpp into its state after preprocessing, e.g. main_pp.cpp.
However, running the command it generates, g++ -E "main.cpp"...
0
votes
1
answer
542
views
What is the windows cmd command equivalent to ubuntu command timeout 5s a.exe < input.txt
I am developing an online judge for my university. I need to timeout every program after 5 seconds for measuring time limit. my input is input.txt file and i am compiling and getting output in ubuntu ...
2
votes
2
answers
4k
views
Add a permanent compiler option to g++
I am using a g++ 4.7 on Ubuntu 12.04 to compile my c++ code, and it won't be compiled unless an -std=gnu++11 option is added to my command like this:
g++ -std=gnu++11 main.cpp
Is there a way to add ...