I'm trying to compile the Reaction examples that were included in the 3.9 NDK. I'm using GCC 2.95.3.. these are the errors I get on the listbrowser example:
5.dh2:NDK_3.9/Examples/Reaction/ListBrowser> g++ test.cpp
test.cpp:112: warning: initialization of negative value `-1' to `ULONG'
test.cpp:118: warning: initialization of negative value `-1' to `ULONG'
test.cpp: In function `int main()':
test.cpp:189: warning: negative value `-1' passed as argument 3 of `AddGList(Window *, Gadget *, long unsigned int, long int, Requester *)'
/t/cc0z7FsB.o(.text+0x57e): undefined reference to `LISTBROWSER_GetClass'
/t/cc0z7FsB.o(.text+0x8ba): undefined reference to `LABEL_GetClass'
/t/cc0z7FsB.o(.text+0x914): undefined reference to `LABEL_GetClass'
/t/cc0z7FsB.o(.text+0x954): undefined reference to `AllocListBrowserNode'
/t/cc0z7FsB.o(.text+0x99e): undefined reference to `AllocListBrowserNode'
/t/cc0z7FsB.o(.text+0xa48): undefined reference to `FreeListBrowserNode'
/t/cc0z7FsB.o(.text+0xa54): undefined reference to `FreeListBrowserNode'
/t/cc0z7FsB.o(.text+0xd74): undefined reference to `AllocListBrowserNode'
/t/cc0z7FsB.o(.text+0xdd6): undefined reference to `FreeListBrowserNode'
/gg/lib/libamiga.a(lockpubscreen.o)(.text+0x4): undefined reference to `IntuitionBase'
/gg/lib/libamiga.a(openwindowtags.)(.text+0x4): undefined reference to `IntuitionBase'
/gg/lib/libamiga.a(newobject.o)(.text+0x6): undefined reference to `IntuitionBase'
/gg/lib/libamiga.a(addglist.o)(.text+0x6): undefined reference to `IntuitionBase'
/gg/lib/libamiga.a(refreshglist.o)(.text+0x6): undefined reference to `IntuitionBase'
/gg/lib/libamiga.a(setwindowtitles.o)(.text+0x6): more undefined references to `IntuitionBase' follow
collect2: ld returned 1 exit status
.. What do I need to do to get this to work? I'm a bit of a programming newbie, so please excuse my ignorance.