Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
HP.com home

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

 

** About PDF files: The PDF files on this Web site can be read online or printed using Adobe® Acrobat® Reader. If you do not have this software installed on your system, you may download it from Adobe's Web site
Privacy statement Using this site means you accept its terms Feedback to webmaster
© 2008 Hewlett-Packard Development Company, L.P.