delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/01/27/15:16:20

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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
Message-ID: <00b201c2c640$94892e20$78d96f83@pomello>
From: "Max Bowsher" <maxb AT ukf DOT net>
To: "David Meggy" <dmeggy AT techsol DOT ca>, <cygwin AT cygwin DOT com>
References: <1043694656 DOT 424 DOT 7 DOT camel AT DavidAsus>
Subject: Re: gcc linking
Date: Mon, 27 Jan 2003 20:13:38 -0000
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106

David Meggy wrote:
> $ cat prog.c
> #include <stdio.h>
>
> int main() {
>  char ** string;
>  asprintf(string, "Sfsdf");
>  return 0; }
>
>
> david AT DURON1000 ~
> $ gcc -O2 prog.c -o prog
>
> david AT DURON1000 ~
> $ ./prog.exe
>
>
>
> When I run the program I get a message from MS-Windows titled
> "prog.exe
> - Entry Point Not Found", with the following message "The procedure
> entry point asprintf could not be located in the dynamic link library
> cygwin1.dll."
>
> That leaves with a couple questions.  Why does it let me link the
> program if asprintf doesn't exist?

Version skew between libcygwin.a and cygwin1.dll.

Did you update Cygwin, and then not reboot?
If so reboot.

If not:
Re-run setup, and "Reinstall" package "cygwin".
Either make sure no Cygwin programs (including services you may have
installed) are running, or reboot if setup tells you to.


Max.


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


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