ITEM: I4117L

Link problems compiling streams test program



Question:

I am compiling a test STREAMS program called multi with the following line : 

xlC -g -o multi multi.C $ENV_CFLAGS 

and I am getting link errors. The errors indicate that calls to getmsg() and putmsg() 
are not recognized. Can you help me clear up these errors? 

Response: 
You need to reference the pse.exp library in your compile please change the line to 
read as follows: 

xlC -g -o multi multi.C $ENV_CFLAGS -bI:/lib/pse.exp 

This solved your link problem. 

Response:

When you try to run your program, the system responds immediatly with : 
Killed
also when you try to load multi into dbx it says : 
Warning cannot execute multi 

You need to make sure that the streams /dev/dlpi drivers are loaded. Not having 
them loaded can create this problem. You ran 'strload' and your program works 
fine.


Support Line: Link problems compiling streams test program ITEM: I4117L
Dated: June 1994 Category: N/A
This HTML file was generated 99/06/24~13:30:45
Comments or suggestions? Contact us