User forums > Help

problem about x.org in code::blocks under windows environment

(1/1)

honeysong:
     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. 

MortenMacFly:

--- Quote from: honeysong on October 26, 2009, 01:42:06 pm ---i think that why the Administrator locked my topic and said that it does not relate to this forum. I beg your pardon. 

--- End quote ---
Look, it was not the wrong name why the topic got locked. If you google for the error message you'll surely quickly find out that you'll need a X-server running and need to set that environment variable properly. However - this depends heavily on your system / OS /X-server in use and a lot other things. Note that this is not related to C::B.

Try to find out how to run e.g. x-eyes on your machine and then you'll certainly know what to do (outside Code::Blocks btw...).

I'll leave this topic open for now for others to state something different, but please be careful. You are still violating our forum rules.

Navigation

[0] Message Index

Go to full version