I'm trying to compile a C++ program which uses the icon library's PutIconTags () function. I've included
- #include <proto/icon.h>
and the function call looks like this:
- IIcon->PutIconTags ( NULL,
- ICONPUTA_NotifyWorkbench, TRUE,
- ICONPUTA_PutDefaultType, WBDRAWER,
- TAG_DONE );
However, I get these errors:
error: 'ICONPUTA_NotifyWorkbench' was not declared in this scope
error: 'ICONPUTA_PutDefaultType' was not declared in this scope
If I comment the tags out, I get an IIcon error:
undefined reference to `IIcon'
What's wrong with my code? Do I need to include some additional system header files to make it work?
I'm compiling with these options: -O3 -N -Wall -lauto