Thanks for the reply, i ran the app with gdb, and it’s ThreadCtl
which is giving me a SIGSEGV, can someone post an example or test my code to
see if it works for them, as to the wave.c file i was having problems
compiling, i rebooted and afterwards the wave.c file compiled, something
must have happened to gcc, strange but their you go.
“Andrzej Kocon” <email@example.com> wrote in message
On Sun, 15 Jul 2001 01:23:36 +0100, “Caz” <> firstname.lastname@example.org
The -T1 is required for QNX4. Print short trace messages to
stderr (unbuffered) before each instruction and verify return codes
and the errno value. You will get SIGSEGV from out8() if ThreadCtl()
fails to acquire the privities. You will probably get the same if “%s”
in printf() is not a typo (should be %c/d/x).
Do you compile wave.c with -l asound? What is your version of
QRTP? For the moment I could only verify it compiles under 6.0.
I’ve just been using QNX RTP and thought i’d try a bit of coding,
and i tried this bit of code, everyrtime i run the app, it says Error:
memory core dumped, i’m running the app as root, i saw somewhere to
the program with gcc -T1 -o app app.c, the linker says it cannot find a
script or something for the -T1. I have one more question too, in the QNX
docs there is a wave.c example, i get loads of errors in the header files
when trying to compile it. Any help would be great.
uint8 t = 0x53;
Port = mmap_device_io(1, 0x378);
b = in8(Port);