This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Re: gcc linking
- From: "Max Bowsher" <maxb at ukf dot net>
- To: "David Meggy" <dmeggy at techsol dot ca>,<cygwin at cygwin dot com>
- Date: Mon, 27 Jan 2003 20:13:38 -0000
- Subject: Re: gcc linking
- References: <1043694656.424.7.camel@DavidAsus>
David Meggy wrote:
> $ cat prog.c
> #include <stdio.h>
>
> int main() {
> char ** string;
> asprintf(string, "Sfsdf");
> return 0; }
>
>
> david@DURON1000 ~
> $ gcc -O2 prog.c -o prog
>
> david@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/