[an error occurred while processing this directive]

HP OpenVMS Systems

ask the wizard
Content starts here

Using C to bypass (valid) LINKER MULDEF errors?

» close window

The Question is:

 
Hi Wiz!
 
I have a library (libefence) with own malloc,free routines that I want to use
 with a program that I link the library with.
 
It doesn't matter if I link with .obj,.lib or a sharable.
 
How do I avoid getting
LINK-W-MULDEF warning from the linker when he/she finds the same symbols in
 /SYSSHR - libraries.
 
Environment: OpenVMS V7.3
DEC C V6.0-001 on OpenVMS Alpha V7.2-1
 
Regards
- Ingvaldur
 
 
 


The Answer is :

 
  Use your own private routine names.  Do not use the standard C library
  names for non-standard routines.
 
  Use preprocessor defines via #define or via CC/DEFINE to redirect the
  accesses to your own routines.
 
  If you insist on a technique that the OpenVMS Wizard does not recommend,
  use the CC/PREFIX=EXCEPT mechanism.
 
  The OpenVMS Wizard strongly encourages you to read the current C user
  documentation.
 

answer written or last revised on ( 12-FEB-2003 )

» close window