This is the mail archive of the cygwin-xfree mailing list for the Cygwin XFree86 project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Build with MinGW GCC, link to Cygwin libs, program doesn't work


On Mon, Sep 12, 2005 at 05:20:13PM -0400, Daniel Orzechowski wrote:
>I've built a simple application by compiling the source with the MinGW 
>version of GCC 3.3.1 , and linking to the regular Cygwin X11 libraries.
>
>My C_INCLUDE_PATH environment variable points to the 
>c:\cygwin\usr\X11R6\include , and my LIBRARY_PATH variable points to 
>c:\cygwin\usr\X11R6\lib .
>
>After calling
>> gcc -o test test.c -lX11-6
>the code compiles and links successfully.  I run XWin.exe (which works 
>properly; I am able to use xeyes, xfontsel, etc.) and then launch my 
>program.  It gets stuck on the call to XOpenDisplay(), and does nothing but 
>run the CPU up to 99% load until I send it a Ctrl-C.
>
>I'm not very familiar with Cygwin, and wouldn't know where to start looking 
>to troubleshoot this.  Has anyone ever experienced anything similar to this 
>problem, or know where I could look to get started?  I skimmed the FAQ but 
>didn't seem to find anything relevant.
>
>
>(Switching compilers or Cygwin versions isn't really possible, since our 
>customer is dictating what build environment we use.  I'm attempting to use 
>the Cygwin X libraries since we're evaluating alternatives to the 
>commercial off-the-shelf X server and client software we're currently 
>using.)

If switching compilers isn't possible then you're out of luck.  You can't
do what you are doing here without using the cygwin gcc compiler.

cgf

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://x.cygwin.com/docs/
FAQ:                   http://x.cygwin.com/docs/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]