I am new in omnet++ and found some difficulty. My code is ok but the problem is g++ and gcc is not found in PATH. I have no idea why this problem is going on. Thanks in advance.
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
Start mingwenv.cmd
from main OMNeT++ directory, type omnetpp
and don't close console. All needed paths will be correctly set (path to gcc
and g++
too).
回答2:
Since I do not have enough reps to comment, I will reply here.
First (obvious) things first, are you sure that gcc/g++ compiler suite are installed on your machine? If they are not installed, then the IDE can not find them. Try installing them, and restart the IDE.
Also, if you have played around with the preferences of the IDE, make sure to restart things to defaults as suggested here: Eclipse C++ : "Program "g++" not found in PATH"