delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2015/11/05/12:35:29

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:date:from:reply-to:message-id:to:subject
:in-reply-to:references:mime-version:content-type
:content-transfer-encoding; q=dns; s=default; b=AFzhd398nuZOWM9/
5aUeXH4ti5NRJISkvro6Wv+3RELRdB/2y7TFYAHK1befLW7d1ve90cYbjGuVIdsV
Kp11pD4xm51qjWhpQR2N5+ec1btlpnsqtpNE5j1LlIHtl5XB9Xek89U93xzlriTZ
8hZ5q+s2nNNIF9QSyIfshwZtUM8=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:date:from:reply-to:message-id:to:subject
:in-reply-to:references:mime-version:content-type
:content-transfer-encoding; s=default; bh=KwkK9cxrW5Co+/o+U5QSOx
MKLIE=; b=bExeFnFR47cftbNpoDto0S8EQqkcrXOqCQKKOr4J/KPEQYkgD2rTXF
1BJnLFYpX2jttCUog6mzwpVulG5GX4ivifr3RO697hpd0aK2yktyoOJkd4b4MArT
Tw2iChX1i6gXyPuMzNaiC30/zYReGjpNNW64qwXYXvzIfCuVK2xRs=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=4.1 required=5.0 tests=AWL,BAYES_50,FREEMAIL_FROM,KAM_THEBAT,SPF_SOFTFAIL autolearn=no version=3.3.2
X-HELO: smtp.ht-systems.ru
Date: Thu, 5 Nov 2015 20:30:26 +0300
From: Andrey Repin <anrdaemon AT yandex DOT ru>
Reply-To: cygwin AT cygwin DOT com
Message-ID: <1938935272.20151105203026@yandex.ru>
To: Daniel Goldman <dgoldman AT ehdp DOT com>, cygwin AT cygwin DOT com
Subject: Re: Compile test ncurses program to run independent of cygwin?
In-Reply-To: <563B0A76.3060509@ehdp.com>
References: <563B0A76 DOT 3060509 AT ehdp DOT com>
MIME-Version: 1.0
X-IsSubscribed: yes

Greetings, Daniel Goldman!

> # Found /usr/x86_64-pc-cygwin/sys-root/usr/lib/libncurses.a
> # Will this let me compile for dos window? Apparently not.
> $ i686-pc-mingw32-gcc -I /usr/x86_64-pc-cygwin/sys-root/usr/include/ 
> ncurses.c -L /usr/x86_64-pc-cygwin/sys-root/usr/lib/ -lncurses
> ... undefined reference to `initscr'
> ... more "undefined reference" error messages

> ------------------------------------------------------------

> My questions:

> 1) Did I make a compile-line syntax error? Is there a variation of the 
> i686-pc-mingw32-gcc command line so I can use cygwin to compile 
> ncurses.c to run in dos window, independent of cygwin?

I'm no expert, but my first answer would be "yes".
You shouldn't use cross-compilers directly, rather, use appropriate GCC
switches to specify host and target subsystems.

> 2) If not, to compile ncurses.c to run in dos window, independent of 
> cygwin, do I have to set up the ncurses library myself?

> I tried to get an answer from the docs, it seems unclear.


-- 
With best regards,
Andrey Repin
Thursday, November 5, 2015 20:29:01

Sorry for my terrible english...


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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019