Thread overview
Linker problem
Sep 10, 2013
Marek Janukowicz
Sep 30, 2013
Kagamin
Sep 30, 2013
Iain Buclaw
Sep 30, 2013
Iain Buclaw
September 10, 2013
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
September 30, 2013
Reduce it.
September 30, 2013
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';


September 30, 2013
On Sep 10, 2013 11:15 PM, "Marek Janukowicz" <marek@janukowicz.net> wrote:
>
`_D3std5regex13getUnicodeSetFNexAabbZxS3std8internal3uni12CodepointSet99__T12__lambda1529TyS3std8internal7uni_tab15UnicodePropertyTS3std8internal7uni_tab15UnicodePropertyZ12__lambda1529FNaNfyS3std8internal7uni_tab15UnicodePropertyS3std8internal7uni_tab15UnicodePropertyZb'
> collect2: error: ld returned 1 exit status
>

Are you using std.regex.getUnicodeSet anywhere?   Start reducing around that function call.

Regards
-- 
Iain Buclaw

*(p < e ? p++ : p) = (c & 0x0f) + '0';