* Include File Error
@ 1996-05-31 4:00 David Phan
1996-06-03 4:00 ` Jonathan ben-Avraham (Tivoli)
0 siblings, 1 reply; 2+ messages in thread
From: David Phan @ 1996-05-31 4:00 UTC (permalink / raw)
Can anyone help me? I tried to compile an UNIX socket example program
on Alpha OSF/1 and got the following compilation error message:
$ cc -o sockunix sockunix.c
/usr/lib/cmplrs/cc/cfe: Error: sockunix.c: 20: Cannot open file libc.h for
#include
The first few lines of the programs are:
#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
#include <string.h>
#include <libc.h>
#include <netdb.h>
#include <sys/socket.h>
#include <netinet/in.h>
Do I need to use the -I and -L to include the correct path and libralies?
If so, what are the path name?
Thanks in advance.
David
--
|o| David Phan Email: dphan@comsource.net |o|
|o| ComSource, Inc. URL: http://www.comsource.net |o|
|o| 101 Plaza East Blvd. Suite 316, Evansville, IN 47715 |o|
|o| Voice: 812.469.0300 Fax: 812.469.0317 |o|
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Include File Error
1996-05-31 4:00 Include File Error David Phan
@ 1996-06-03 4:00 ` Jonathan ben-Avraham (Tivoli)
0 siblings, 0 replies; 2+ messages in thread
From: Jonathan ben-Avraham (Tivoli) @ 1996-06-03 4:00 UTC (permalink / raw)
David Phan (dphan@alpha.comsource.net) wrote:
: Can anyone help me? I tried to compile an UNIX socket example program
: on Alpha OSF/1 and got the following compilation error message:
:
: $ cc -o sockunix sockunix.c
: /usr/lib/cmplrs/cc/cfe: Error: sockunix.c: 20: Cannot open file libc.h for
: #include
:
:
: The first few lines of the programs are:
: #include <stdio.h>
: #include <stdlib.h>
: #include <ctype.h>
: #include <string.h>
: #include <libc.h>
: #include <netdb.h>
: #include <sys/socket.h>
: #include <netinet/in.h>
:
: Do I need to use the -I and -L to include the correct path and libralies?
: If so, what are the path name?
:
: Thanks in advance.
:
: David
: --
: |o| David Phan Email: dphan@comsource.net |o|
: |o| ComSource, Inc. URL: http://www.comsource.net |o|
: |o| 101 Plaza East Blvd. Suite 316, Evansville, IN 47715 |o|
: |o| Voice: 812.469.0300 Fax: 812.469.0317 |o|
David,
Where did you get this code from? Try commenting out the line
#include <libc.h>, recompile and tell us what error message you
get.
- yba
TclTek Ltd. "Don't laugh, we're serious!" ~. .~
=}----------------------------------------------------ooO--U--Ooo------{=
- benavrhm@tcltek.co.il - tel: +972.52.670.353, http://www.tcltek.co.il -
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1996-06-03 4:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1996-05-31 4:00 Include File Error David Phan
1996-06-03 4:00 ` Jonathan ben-Avraham (Tivoli)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox