Operating System - OpenVMS
cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with linking C-hack

SOLVED
Go to solution
Heinz W Genhart
Honored Contributor

Problem with linking C-hack

Hi community

I try to do a fast hack which shows me all the TCPIP Interfaces, their addresses (IP and HW) and their network masks.

Now I have a samll c-programm. I can compile it, but I cant link it.

The linker finds two undefined Symbols.
But as far as I can see, those two symbols are defined in sys$share:tcpip$libpcap_shr.exe and I use this shareable image for linking.

Can somebody give me a hint?
Please see attached files and output

Thanks in advance

Geni

2 REPLIES
Martin Vorlaender
Honored Contributor
Solution

Re: Problem with linking C-hack

Geni,

if I ANALYZE/IMAGE SYS$SHARE:TCPIP$LIBPCAP_SHR.EXE, I see "pcap_findalldevs" and "pcap_freealldevs", i.e. lower-case. You have to tell the C compiler to compile your modules /NAMES=AS_IS to pass them lower-cased to the linker.

HTH,
Martin
Heinz W Genhart
Honored Contributor

Re: Problem with linking C-hack

Hi Martin

that's it...

Thanks a lot

Geni