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

SOLVED
Go to solution
Honored Contributor

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

Geni

2 REPLIES
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
Honored Contributor

Hi Martin

that's it...

Thanks a lot

Geni