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:to:from:subject:date:message-id:references :mime-version:content-type:content-transfer-encoding; q=dns; s= default; b=F8DVyydSnmOBFIU9/f0412n+6M52wSLnL5dMqcCtGTHorj0Vy5oJd 3Mo9+FSQzbcbUBwFI9vEKZQOTIV+GEWsqc915CqNuTyF/qC++IMeLjtcILBEs+Rb l5XPrDLOZQLMkr5gKDROIuvJdpQSYZDkxxjdCU9MnTmA4MBRl2oXZk= 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:to:from:subject:date:message-id:references :mime-version:content-type:content-transfer-encoding; s=default; bh=cNZkgArfKe9MIRBK0/4T0bzY61k=; b=WT7vQSX4DFXKXwc6u+unIW8zdRR0 C/Ue6zSfjBoviE3GaQ0BTJdMhm4HgS3tP69DCpVdPmOSKkG/wAZOveLaVJ04qQu0 YKntIZEQJ0qRJyRPwrMoWwZIaWjoJWahcNHT7ik8s1kDmsIswu1M16Q2FEflBuwA LPFDp/K2qBMZgEQ= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , 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: Yes, score=5.9 required=5.0 tests=AWL,BAYES_50,RDNS_NONE,SPAM_BODY1,SPF_HELO_PASS,SPF_PASS autolearn=no version=3.3.2 X-HELO: plane.gmane.org To: cygwin AT cygwin DOT com From: "D. Boland" Subject: Re: SV: Some first questions. Date: Mon, 04 Nov 2013 17:58:08 +0100 Lines: 32 Message-ID: <5277D220.DF64585C@boland.nl> References: <001001ced4c3$41168830$c3439890$@org> <52769D49 DOT C03E3F2B AT boland DOT nl> <000601ced945$0437f530$0ca7df90$@tdcadsl.dk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Gert Koefoed Andersen wrote: > > I have compiled lot of sources on linux systems and got now errors here but > on cygwin on my windows 7 32bit things not like to work for me. > What I ever I have done for it, like: > Cd /cygdrive/k/huskysrc/smapi > Or copied it to /src/src/huskysrc > Cd /usr/src/huskysrc/smapi > Make > Make install > And it ends by error for ld not found some files and others. > Output from cygwin terminal by the error: > gcc 1stchar.o -o 1stchar > /usr/lib/gcc/i686-pc-cygwin/4.7.3/../../../libcygwin.a(libcmain.o): I > funktionen "main": > /usr/src/debug/cygwin-1.7.25-1/winsup/cygwin/lib/libcmain.c:39: undefined > reference to `WinMain AT 16' > collect2: fejl: ld returnerede afslutningskoden 1 > : recipe for target '1stchar' failed > make: *** [1stchar] Error 1 I know this error (unknown reference to WinMain). You get it when you try to compile a module. A module has no "main" function (like a program has). You need to compile it with option -c. Like: gcc -c lstchar.o -o lstchar Maybe you can add the extra option in the Makefile? I must say, this kind of error occurs only in poorly made distributions, so this will be a difficult build... HTH, Daniel -- 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