This code compiles and runs with -lauto.
#include <proto/exec.h> #include <proto/intuition.h> #include <proto/listbrowser.h> #include <gadgets/listbrowser.h> int main() { struct ColumnInfo *columnInfo = IListBrowser->AllocLBColumnInfo (2, TAG_DONE); IListBrowser->SetLBColumnInfoAttrs (columnInfo, LBCIA_Column, 0, //LBCIA_CopyTitle, TRUE, LBCIA_Title, "Title1", LBCIA_Column, 1, //LBCIA_CopyTitle, TRUE, LBCIA_Title, "Title2", TAG_DONE); return 0; }
When uncommenting the two lines containing LBCIA_CopyTitle, it gives a Grim Reaper.
I am pretty sure, this must be a bug. Can anyone confirm this? Where does one send bug reports these days?
The original implementation of the LBCIA_CopyTitle had a bug (it was missing a break statement). This was fixed in version 53.70 in January 2016, however I don't think this or a later version have been released yet.
Thanks for the reply. Good to know. I have fixed my own code with a strdup() statement. I guess it's going to be fine for now.