There is an ANSI C function called system() in the stdlib.h header (I think). It runs a synchronous (AFAIR) command at the console, eg
#include
#include
int main()
{
puts("Launching multiview!");
system("SYS:Utilities/Multiview WINDOW");
return 0;
}
If sucessful, the above C program should run multiview with a blank window.
I use something like this for opening debug files I generate inside my own code, so can assure you it works ;-)
-edit-
AFAIK, a.out is just the default executble name for the generated program. Check the docs for info on how to set the executable name that gcc produces. In any event, try running it at the shell and see what happens. Hopefully it's just your program...
Sorry if this seems a bit scant, I had scripts set up for all this stuff yonks ago and forgor simple things like that ;-)