[PD-dev] flext and gnu/windows - 'undefined reference' with pd global vars?

dmotd inaudible at simplesuperlativ.es
Mon Apr 4 15:33:46 CEST 2011


fwd'd from flext list..

background: i've been working on a new autotools template for flext 
based libs and started testing on windows platform with cygwin + mingw, 
immediate issues with building flext lib itself.

have any pd-devs experienced this 'undefined reference' issue with the 
linker?

i'm testing against millers pd-0.43-0.msw.zip on win2k and winxp 
virtualbox images. build logs attached.

cheers,
dmotd

-------- Original Message --------
Subject: Re: [flext] autotools builders - flext and gnu/windows
Date: Mon, 4 Apr 2011 14:27:52 +0200
From: Thomas Grill <gr at grrrr.org>
To: dmotd <inaudible at simplesuperlativ.es>
CC: flext at grrrr.org

hi dmotd, many thanks for your efforts,

> mingw (gcc 4.5.2):
> with both your buildsys (cmd prompt) and autoconf (msys shell),
> mingw will build all the static libs, but fails at the linker stage
> when building the dynamic library, with a bunch of undefined
> references (see attachment).
>
> i have attempted to encourage the build further by passing linker
> flags (-Wl,--as-needed and -Wl,--no-undefined *plus numerous others/
> combinations*) but nothing seems to make it budge. i'm not sure if
> the compiler is being pedantic or i'm just not understanding
> something.
>

I can remember that problem - it is connected to the way how global
variables (like garray_class, s_float etc.) in Pd are defined for the
linker.
I must have found a solution once....

> cygwin (gcc 3.4.4)
> cygwin breaks with your buildsys due to what appears to be an issue
> with the environment (see attachment). with autoconf it acts much
> like mingw - it can successfully build static libs but fails to make
> the shared dll, a few more undefined references than with mingw (see
> attachment).
>

The flext-build output seems to indicate a c++ namespace problem which
should not be too hard to fix.
The autoconf output seems different, probably a mixture of problems.

i'm not sure if i can spare any time for that soon but it's good to
know the weak spots.

all the best,
Thomas
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: flext-autotools-cygwin.txt
URL: <http://lists.puredata.info/pipermail/pd-dev/attachments/20110404/072dee4c/attachment-0003.txt>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: flext-build-cygwin.txt
URL: <http://lists.puredata.info/pipermail/pd-dev/attachments/20110404/072dee4c/attachment-0004.txt>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: flext-build-mingw.txt
URL: <http://lists.puredata.info/pipermail/pd-dev/attachments/20110404/072dee4c/attachment-0005.txt>


More information about the Pd-dev mailing list