Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm 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 Subject: gcc linking From: David Meggy To: cygwin AT cygwin DOT com Content-Type: text/plain Content-Transfer-Encoding: 7bit Date: 27 Jan 2003 11:10:56 -0800 Message-Id: <1043694656.424.7.camel@DavidAsus> Mime-Version: 1.0 Hi, I've run into some difficulties with gcc/ld on the latest cygwin (downloaded friday). Below is an example. $ cat prog.c #include 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? I'm trying to compile a gcc cross compiler. I also reach this error while running my compiled arm-linux-gcc. The gcc configure script looks for asprintf by attempting a link. Which program is buggy? Thanks David -- ~~~~~~~~~~~~~~~~~~~~~~~~ David Meggy Engineering Technical Solutions Inc. Unit #1 7157 Honeyman St Delta BC Canada, V4G 1E2 www.techsol.ca eMail: dmeggy AT techsol DOT ca Tel: 604 946 TECH (8324) Fax: 604 946 6445 ~~~~~~~~~~~~~~~~~~~~~~~~ -- 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/