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 reply "Kagamin" <spam here.lot> writes:
Reduce it.
Sep 30 2013
parent Iain Buclaw <ibuclaw ubuntu.com> writes:
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';
Sep 30 2013
prev sibling parent Iain Buclaw <ibuclaw ubuntu.com> writes:
On Sep 10, 2013 11:15 PM, "Marek Janukowicz" <marek janukowicz.net> wrote:

`_D3std5regex13getUnicodeSetFNexAabbZxS3std8internal3uni12CodepointSet99__T=
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';
Sep 30 2013