Skip to content

[Generics] undefined references for TTreeMaps in imports #753

Description

@GWRon

As reported via discord already, the following main file and its import file lead to an undefined reference error.

test.bmx

SuperStrict
Framework Brl.StandardIO

Import "importfile.bmx"

importfile.bmx

SuperStrict

Import Collections.TreeMap

Global trendsMap:TTreeMap<string, TTrendsEntry> = New TTreeMap<string, TTrendsEntry>()
Type TTrendsEntry
    Field key:Int
    Field value:String
End Type

Output:

[100%] Linking:test
/usr/bin/ld: /Testcodes/TreeMapTest/.bmx/importfile.bmx.release.linux.x64.o: in function `_bb_treemaptest_importfile':
importfile.bmx.release.linux.x64.c:(.text+0xfe): undefined reference to `gimpl_TTreeMapSTTTrendsEntry'
collect2: error: ld returned 1 exit status
Build Error: Failed to link /Testcodes/TreeMapTest/test
Compilation failed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions