www.digitalmars.com         C & C++   DMDScript  

D.gnu - Linker problem

reply Marek Janukowicz <marek janukowicz.net> writes:
Hi

With my project I'm getting this when compiling:
/tmp/ccQGv9qV.o: In function 
`_D3std5regex13getUnicodeSetFNexAabbZxS3std8internal3uni12CodepointSet143__T11SortedRangeTAyS3std8internal7uni_tab15UnicodePropertyS813std5regex13getUnicodeSetFNexAabbZxS3std8internal3uni12CodepointSet12__lambda1529Z11SortedRange6__ctorMFNaNcAyS3std8internal7uni_tab15UnicodePropertyZS3std5regex13getUnicodeSetFNexAabbZxS3std8internal3uni12CodepointSet143__T11SortedRangeTAyS3std8internal7uni_tab15UnicodePropertyS813std5regex13getUnicodeSetFNexAabbZxS3std8internal3uni12CodepointSet12__lambda1529Z11SortedRange':
/opt/gdc/include/d/4.8.1/std/range.d:7326: undefined reference to 
`_D3std5regex13getUnicodeSetFNexAabbZxS3std8internal3uni12CodepointSet222__T8isSortedS813std5regex13getUnicodeSetFNexAabbZxS3std8internal3uni12CodepointSet12__lambda1529TS3std5range53__T6strideTAyS3std8internal7uni_tab15UnicodePropertyZ6strideFAyS3std8internal7uni_tab15UnicodePropertymZ6ResultZ8isSortedMFS3std5range53__T6strideTAyS3std8internal7uni_tab15UnicodePropertyZ6strideFAyS3std8internal7uni_tab15UnicodePropertymZ6ResultZb'
/tmp/ccQGv9qV.o: In function 
`_D3std5regex13getUnicodeSetFNexAabbZxS3std8internal3uni12CodepointSet143__T11SortedRangeTAyS3std8internal7uni_tab15UnicodePropertyS813std5regex13getUnicodeSetFNexAabbZxS3std8internal3uni12CodepointSet12__lambda1529Z11SortedRange89__T3geqTyS3std8internal7uni_tab15UnicodePropertyTS3std8internal7uni_tab15UnicodePropertyZ3geqMFNaNfyS3std8internal7uni_tab15UnicodePropertyS3std8internal7uni_tab15UnicodePropertyZb':
/opt/gdc/include/d/4.8.1/std/range.d:7300: undefined reference to 
`_D3std5regex13getUnicodeSetFNexAabbZxS3std8internal3uni12CodepointSet99__T12__lambda1529TyS3std8internal7uni_tab15UnicodePropertyTS3std8internal7uni_tab15UnicodePropertyZ12__lambda1529FNaNfyS3std8internal7uni_tab15UnicodePropertyS3std8internal7uni_tab15UnicodePropertyZb'
collect2: error: ld returned 1 exit status

Unfortunately I can't post the source code (and the project is not trivial 
anyway). How can I debug this further?

-- 
Marek Janukowicz
Sep 10 2013
next sibling parent "Kagamin" <spam here.lot> writes:
Reduce it.
Sep 30 2013
prev sibling next sibling parent Iain Buclaw <ibuclaw ubuntu.com> writes:
--047d7b5d4e5ea1d95904e79b90e7
Content-Type: text/plain; charset=ISO-8859-1

On Sep 30, 2013 3:04 PM, "Kagamin" <spam here.lot> wrote:
 Reduce it.

Yeah, just doing a quick mental demangle it's something in the phobos library, so see what parts of that you are using and reduce from there. Regards -- Iain Buclaw *(p < e ? p++ : p) = (c & 0x0f) + '0'; --047d7b5d4e5ea1d95904e79b90e7 Content-Type: text/html; charset=ISO-8859-1 <p>On Sep 30, 2013 3:04 PM, &quot;Kagamin&quot; &lt;spam here.lot&gt; wrote:<br> &gt;<br> &gt; Reduce it.</p> <p>Yeah, just doing a quick mental demangle it&#39;s something in the phobos library, so see what parts of that you are using and reduce from there.</p> <p>Regards<br> -- <br> Iain Buclaw</p> <p>*(p &lt; e ? p++ : p) = (c &amp; 0x0f) + &#39;0&#39;;</p> --047d7b5d4e5ea1d95904e79b90e7--
Sep 30 2013
prev sibling parent Iain Buclaw <ibuclaw ubuntu.com> writes:
--001a11c2b266ee016204e79b96fe
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

On Sep 10, 2013 11:15 PM, "Marek Janukowicz" <marek janukowicz.net> wrote:

12__lambda1529TyS3std8internal7uni_tab15UnicodePropertyTS3std8internal7uni_= tab15UnicodePropertyZ12__lambda1529FNaNfyS3std8internal7uni_tab15UnicodePro= pertyS3std8internal7uni_tab15UnicodePropertyZb'
 collect2: error: ld returned 1 exit status

Are you using std.regex.getUnicodeSet anywhere? Start reducing around that function call. Regards --=20 Iain Buclaw *(p < e ? p++ : p) =3D (c & 0x0f) + '0'; --001a11c2b266ee016204e79b96fe Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable <p><br> On Sep 10, 2013 11:15 PM, &quot;Marek Janukowicz&quot; &lt;<a href=3D"mailt= o:marek janukowicz.net">marek janukowicz.net</a>&gt; wrote:<br> &gt; `_D3std5regex13getUnicodeSetFNexAabbZxS3std8internal3uni12CodepointSet= 99__T12__lambda1529TyS3std8internal7uni_tab15UnicodePropertyTS3std8internal= 7uni_tab15UnicodePropertyZ12__lambda1529FNaNfyS3std8internal7uni_tab15Unico= dePropertyS3std8internal7uni_tab15UnicodePropertyZb&#39;<br> &gt; collect2: error: ld returned 1 exit status<br> &gt;</p> <p>Are you using std.regex.getUnicodeSet anywhere?=A0=A0 Start reducing aro= und that function call.<br></p> <p>Regards<br> -- <br> Iain Buclaw</p> <p>*(p &lt; e ? p++ : p) =3D (c &amp; 0x0f) + &#39;0&#39;;</p> --001a11c2b266ee016204e79b96fe--
Sep 30 2013