Page 1 of 1

multiple '.text' sections found with different attributes

Posted: 07 Mar 2010 14:00
by hanss
Hello,

I've developed a gui with eclipse, qt, mingw and vlc on ms vista. Always build debug and ignoring "libvlc.dll.a(d000031.o) : warning LNK4078: multiple '.text' sections found with different attributes(E0300020)" because it worked. Now I am build release (same message), but execution hangs now.

I have had vlc 9.8 and tried right now 1.0.5

qmake uses vlc-1.0.5/sdk/lib/libvlc.dll.a as LIBS downloaded in the vlc-1.0.5-win32.zip

Any idea what to do?

Greetings from Munich from Stefan

Re: multiple '.text' sections found with different attribute

Posted: 07 Mar 2010 18:14
by hanss
Some completion:

I've downloaded vlc-1.0.5-win32 and unzipped it to C:\

The makefiles containing the following:

LIBS = ... C:\vlc-1.0.5\sdk\lib\libvlc.dll.a ...

I've included the following to my code:

#include <vlc/vlc.h>
#include <vlc/libvlc.h>
#include <vlc/libvlc_events.h>

and added the Include path C:\vlc-1.0.5\sdk\include in the project's properties.

The explanation I've found as follows:
"Linker Tools Warning LNK4078
multiple 'section name' sections found with different attributes

LINK found two or more sections that have the same name but different attributes.

Possible cause

An import library or exports file was created by a previous version of LINK or LIB.
Recreate the file and relink."

is from Visual Studio Developer Center, but I have no real clue about that.

Stefan

Re: multiple '.text' sections found with different attribute

Posted: 07 Mar 2010 20:14
by RĂ©mi Denis-Courmont
The Windows toolchain was updated. The import libraries are done with libtool, so I doubt anybody knows their internals here.

Re: multiple '.text' sections found with different attribute

Posted: 13 Jul 2010 17:09
by mangokm40
I just downloaded the 1.1.0 version. I'm getting this message from the linker. Should I create my own '.lib' file as I did for version 1.0.5?
Thanks for your time.

Re: multiple '.text' sections found with different attribute

Posted: 13 Jul 2010 18:34
by mangokm40
As I did in version 1.0.5, I used this information:
http://wiki.videolan.org/GenerateLibFromDll

The warning is gone.