A Friday 08 February 2008 05:22:21, Brad and Tracy Riensche wrote:
> Hi,
>
> I am porting a program that compiles, but doesn't run.  I ran an objdump
> on the .exe and discovered that there is two versions of strdup linked
> in.  One is found in COREDLL, and the other is found in coredll.dll.  It
> seems to me that these should be the same file, but cegcc isn't treating
> them the same.  Is there some way to force the compiler/linker to only
> use one name?

Sounds like there's -lceoldname involved here.  libceoldname.a is an import
lib to coredll.dll, (/src/mingw/Makefile.in / --dllname), and
libcoredll.a is an import lib to COREDLL (top of src/mingw/coredll.def).  
They're both the same dll, but similar problems have been reported
where some machines don't recognize one of the forms.  We have to
standardize on the form that works for everyone.

As a workaround, can you try using _strdup instead?  A 

If you many references, a "#define strdup _strdup" at the top of the
offending file, after all the includes should be enough.

> BTW, I am using the mingwce-0.50-cygwin build.  I've not been able to
> build the latest release for cygwin.  If anyone has any pointers on
> building for a cygwin host, I'd be happy to hear those too.
>

What was the problem exactly?  A common problem is not having all the
dependencies installed, like flex and bison, for example.

-- 
Pedro Alves

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Cegcc-devel mailing list
Cegcc-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cegcc-devel

Reply via email to