a compilation problem

C

champagne

Hello guys,

I am not very familiar with the compilation of C. Now I met a problem
while I tried to compile a file downloaded from web. The error message is

Myfile.h:41:28: sys/fcntlcom.h: No such file or directory

I don't know where the fcntlcom.h file located? Could you give me a hint
about how to handle this problem?

BTW, I am compiling it under SunOS5.8, gcc3.3. Thanks a lot.


Xiaopeng
 
M

Mike Wahler

champagne said:
Hello guys,

I am not very familiar with the compilation of C. Now I met a problem
while I tried to compile a file downloaded from web.


This kind of thing almost always happens when one
tries to use something one does not understand. :)
The error message is

Myfile.h:41:28: sys/fcntlcom.h: No such file or directory

I don't know where the fcntlcom.h file located?

Nor does your compiler. You're much smarter than a compiler.
Go back to the web site where you got that code, and do some
research. That file is not a standard C header, so it could
be anything. You need to find out from the code's author
what it is, what it's for, and where to get it.


Could you give me a hint
about how to handle this problem?

See above. And more important, I strongly advise you to
actually *learn* the language, how it works, and how to
compile a program. Otherwise, you'll only be continually
frustrated and confused.

-Mike
 
D

Default User

champagne said:
Hello guys,

I am not very familiar with the compilation of C. Now I met a problem
while I tried to compile a file downloaded from web. The error message is


Pick a newsgroup. You posted the same thing (without crossposting) to
comp.lang.c.




Brian Rodenborn
 
D

dslater

sys/fcntlcom.h has the look of a system specific header file. Perhaps
the file you downloaded was written for a different system than SunOS.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,083
Messages
2,570,591
Members
47,212
Latest member
RobynWiley

Latest Threads

Top