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.
As reported via discord already, the following main file and its import file lead to an undefined reference error.
test.bmx
importfile.bmx
Output: