I compiled NS2 using code::blocks under Cygwin + windows environment successfully, but failed when try to run it, because the NAM.exe, which is triggered by NS2, need to run in X window. the error message is "no display name and no $DISPLAY environment variable".
Could anyone tell me how to solve this problem? thanks in advance!
There is a website showing how to use cygwin gcc compiler in code::blocks, But i am not sure whether it can work or not when only adding the path \usr\X11R6\include etc in code::blocks.
PLUS: I posted the same topic a few minutes ago with a WRONG name, i think that why the Administrator locked my topic and said that it does not relate to this forum. I beg your pardon.