Author Topic: problem about x.org in code::blocks under windows environment  (Read 3829 times)

honeysong

  • Guest
problem about x.org in code::blocks under windows environment
« on: October 26, 2009, 01:42:06 pm »
     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. 

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9723
Re: problem about x.org in code::blocks under windows environment
« Reply #1 on: October 26, 2009, 01:48:32 pm »
i think that why the Administrator locked my topic and said that it does not relate to this forum. I beg your pardon. 
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.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ