A Wednesday 13 February 2008 14:50:54, InfoMail InfoMail wrote:
> I've compiled and created a DLL library using mingw32ce and the following
> linker command:
>
> $(LD) -shared -Wl,--output-def,myLib.def,--out-implib,myLib.lib -o
> mylib.dll$(OBJECTS)
>
> where LD is arm-wince-mingw32ce-g++
>
> Creation of the dll, def and lib seem ok.
> But if i use that .lib file to compile a wince program (using Visual C
> 2008), the Microsoft linker produces the following warning:
>
> myLib.lib(d000037.o) : warning LNK4078 multiple ".text" sections found with
> different attributes (E0000020)
>
> Why import libraries created using mingw32ce aren't compatible with ones
> produced by VC? dll created using mingw32ce is working fine (on my Dell
> WinCE 5.0 device) only if i use an import library created using VC.
>
> Any idea to solve this issue?
>
> PS: i'm obligated to write final application using VC, but i want to build
> the core dll using mingw32ce.

Hmm, I can't remember seeing those in a while, but then again, I don't
tend to use Visual Studio anymore :-)  I thought they were fixed by
now.  See here for hints on what to do:

http://www.cygwin.com/ml/binutils/2003-12/msg00120.html

That is, try to compare using objdump -h and dumpbin the import libs
created by ld and by MSFTs link.  See if there's anything obviously
different.

-- 
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