Here are the errors:
Building GUITest
Compiling:GUITest.BMX
Linking:GUITest.debug
Undefined symbols:
"_maxgui_maxgui_CreateTreeView", referenced from:
_55 in GUITest.BMX.gui.debug.macos.x86.o
"_maxgui_maxgui_AddTreeViewNode", referenced from:
_55 in GUITest.BMX.gui.debug.macos.x86.o
_55 in GUITest.BMX.gui.debug.macos.x86.o
_55 in GUITest.BMX.gui.debug.macos.x86.o
_55 in GUITest.BMX.gui.debug.macos.x86.o
_55 in GUITest.BMX.gui.debug.macos.x86.o
_55 in GUITest.BMX.gui.debug.macos.x86.o
_55 in GUITest.BMX.gui.debug.macos.x86.o
_55 in GUITest.BMX.gui.debug.macos.x86.o
"_maxgui_maxgui_SetGadgetLayout", referenced from:
_55 in GUITest.BMX.gui.debug.macos.x86.o
"_maxgui_maxgui_TreeViewRoot", referenced from:
_55 in GUITest.BMX.gui.debug.macos.x86.o
"___bb_drivers_drivers", referenced from:
_55 in GUITest.BMX.gui.debug.macos.x86.o
"_maxgui_maxgui_CreateWindow", referenced from:
_55 in GUITest.BMX.gui.debug.macos.x86.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
Build Error: Failed to link /Users/Redspark/BlitzMax/BlitzMax/docs/html/Modules/GUI/MaxGUI/GUITest.debug.app/Contents/MacOS/GUITest.debug
Process complete
and Code:
' createtreeview.bmx
Import MaxGui.Drivers
Strict
Local window:TGadget=CreateWindow("My Window",50,50,240,240)
Local treeview:TGadget=CreateTreeView(0,0,200,200,window)
SetGadgetLayout treeview,2,2,2,2
Local root:TGadget=TreeViewRoot(treeview)
Local help:TGadget=AddTreeViewNode("Help",root)
AddTreeViewNode "topic 1",help
AddTreeViewNode "topic 2",help
AddTreeViewNode "topic 3",help
Local projects:TGadget=AddTreeViewNode("Projects",root)
AddTreeViewNode "project 1",projects
AddTreeViewNode("project 2",projects)
AddTreeViewNode("project 3 is a big waste of time",projects)
While WaitEvent()
Print CurrentEvent.ToString()
Select EventID()
Case EVENT_WINDOWCLOSE
End
End Select
Wend
This code compiles in the example but not when I copied and pasted into another file. Both files are duplicates as far as I can tell. Thanks.