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/



Reply via email to