473,324 Members | 2,246 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,324 software developers and data experts.

a compilation problem

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
Jul 19 '05 #1
3 2041

"champagne" <xp*****@purdue.edu> wrote in message
news:bl********@ector.cs.purdue.edu...
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
Jul 19 '05 #2
champagne wrote:

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
Jul 19 '05 #3
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.

"champagne" <xp*****@purdue.edu> wrote in message news:<bl********@ector.cs.purdue.edu>...
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

Jul 19 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
by: Alex Vinokur | last post by:
Hi, The code below has no problem with GNU g++ 3.3, but it has a problem with GNU g++ 3.4. What is reason for that? --------- foo.cpp : BEGIN --------- template <typename T> struct Boo
6
by: Joachim | last post by:
I made some project changes (which seems it doesn't help if I undo) which have created compilation error: " Server Error in '/PCSWebApp1' Application....
3
by: Dan | last post by:
Hi, I have a problem using an aspx page with a Control on it. I get the following error message Compiler Error Message: CS1595: 'Test.Class2' is defined in multiple places; using definition...
10
by: RedEagle | last post by:
Hi All! Do you remember me? I am that desperate who had this error for a while: --- Compilation Error Description: An error occurred during the compilation of a resource required to service...
0
by: Mythran | last post by:
I'm have 2 primary errors that seem to occur. 1.) In my ASP.Net application, I have 3 libraries (BLL, DAL, and Schema) that are used for the 4th and 5th UI libraries. All of the dependant...
3
by: seema | last post by:
Hi all, I am new to C programming. I have problem compiling a sample , #include <stdio.h> int getuniqueaddress1(){ return 1; } int getuniqueaddress2(){ return 2;
4
by: Bob | last post by:
Hi, In VS2003 conditional compilation constants and their state could be defined at project level. I was using this to control what features where offered by various builds. i.e....
35
by: mwelsh1118 | last post by:
Why doesn't C# allow incremental compilation like Java? Specifically, in Java I can compile single .java files in isolation. The resulting individual .class files can be grouped into .jar files....
6
by: maxwell | last post by:
I'm trying to use the gpp utility (Gnu points to http://en.nothingisreal.com/wiki/GPP) to do conditional compilation in Python, and I'm running into a problem: the same '#' character introduces...
1
by: Alex Vinokur | last post by:
Hi, I have compilation problem on SUN CC compiler with template while using option -m64 (64-bit addressing model). No problem while using option -m32 (32-bit addressing model) $ CC -V CC:...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.