Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm 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 To: cygwin AT cygwin DOT com From: geneSmith <gene DOT smith AT sea DOT siemens DOT com> Subject: __getreent undefined on linux app build Date: Fri, 11 Jun 2004 14:58:43 -0400 Lines: 28 Message-ID: <cacvd3$vfu$1@sea.gmane.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet AT sea DOT gmane DOT org X-Gmane-NNTP-Posting-Host: 66.168.89.166 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.6) Gecko/20040113 I have tried to build a linux app (actually a app and a shared library) that was made for linux and works there under cygwin. Was hoping for minimal changes. First off, it seemed that I had to tell the linker the c library name with -lc. That got rid of a ton of undefined references. However, it still has undefined reference to __getreent is every file when linking the shared library. From reading this list, I see that __getreent comes from the cygwin1.dll at run time. I had more than cywwin1.dll on my system from misc apps and renamed them and rebooted. Still get the link error. I assume you can build a shared library (the docs. only seem to talk about dll's) and that a shared library can call a function in the cywin dll. Someone also suggested using the latest snapshot to fix this type of problem. The other day when I tried to get a new app with setup.exe it automatically loaded the "latest" gcc. Here is my uname -a. If cygcheck -srv is needed, let me know. CYGWIN_NT-5.0 04J005 1.5.10(0.116/4/2) 2004-05-25 22:07 i686 unknown unknown Cygwin Tks, -gene -- Lit up like Levy's -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/