Operating System - HP-UX
1835170 Members
2347 Online
110077 Solutions
New Discussion

compilation C with tcp/ip module

 
SOLVED
Go to solution
ANDRE David
Occasional Advisor

compilation C with tcp/ip module

Hi,

i try to compile a program write in C language on a hpunix system 11.00

# cc server.c
I receive the following error :

cpp: "server.c", line 5: error 4036: Can't open include file 'in.h'.
cpp: "server.c", line 7: error 4036: Can't open include file 'inet.h'.
cpp: "server.c", line 11: error 4036: Can't open include file 'socket.h'.
cpp: "server.c", line 16: error 4036: Can't open include file 'unixio.h'.

I don't find any files on system call socket.h

I try to install a new compilator on system but i don't find socket.h or any other files.
I find the stdio.h on directory /opt/aCC/include/stdio.h
Where can i find thoses files?

Thanks
David.
1 REPLY 1
Steven Gillard_2
Honored Contributor
Solution

Re: compilation C with tcp/ip module

The files should be included as follows:

#include
#include
#include

They all live under /usr/include and should be part of the base OS.

Can you post your code & compile command line?

Regards,
Steve