Hi TruHobbyist,
Thanks for the tip!! Xmodmap works! Scroll lock is now doing the trick.
Now that I'm surviving my final two months at megaCorp, I got some time to give my Octane and my learning some love. Today I spent the afternoon trying to put in code the improved collision algorithm that I figured out with a friend (the current one looks weird - the transfer of kinetic energy doesn't look natural at all).
So far, I've been writing using my C8000 under HP-UX and aCC and never had any issues with the code. MIPSPro always accepted every single line of my code without any issues, until today.
I wrote a command line interface for my program, so I can change render parameters on the fly and see how they affect performance. It works great both on my Intel Mac and my PA-RISC HP-UX machine. It's quite cool to follow Mark Kilgard's tips and actually see the difference.
However, when I tried to build it using my Octane, no go.
Within my main function, I do the classic:
Code:
pthread_thr;
if (pthread_create(&thr,NULL,command_prompt_thread, NULL)) {
fprintf(stderr, "Failed to create thread.\n");
return EXIT_FAILURE;
}
Ancient aCC (HP-UX 11.11) and new clang accept it fine (for aCC, I had to add -lthreads), but MIPSPro goes poof:
"A declaration cannot appear after an executable statement in a block."
The same error is affecting other parts of my code now, even for "int i" within a function. I googled around but nothing very helpful.
I'm compiling with no special options besides pointing to -lGLU -lGL -lXmu and -lX11
I also spent some time poking around Motif, but I felt my sanity going away very fast, so I dropped it.
Thanks guys, and looking forward to being more active again!
edit: forget about it. I was forgetting -c99