Solved

#include error

Posted on 1998-10-16
6
222 Views
Last Modified: 2013-11-18
While trying to compile a script , I've encountered some errors.
It says:     '#INCLUDE'  EXPECTS  "FILENAME" OR <FILENAME>
in the following strings:
#include &lt;stdlib.h&gt;
#include &lt;unistd.h&gt;
#include &lt;fcntl.h&gt;
Please,help me!
Thanx.
0
Comment
Question by:sam
  • 3
  • 3
6 Comments
 
LVL 86

Accepted Solution

by:
jkr earned 100 total points
ID: 1253604
The compiler is right ;-)
It should read:
#include <stdlib.h>
#include <unistd.h>
#include <fcntl.h>

Did you copy the code from a web page?
0
 

Author Comment

by:sam
ID: 1253605
yeah! what shall I do to make it work?
0
 
LVL 86

Expert Comment

by:jkr
ID: 1253606
Simply change the code to what i posted above. '&lt;' is the HTML equivalent to ASCII '<' and so is '&gt;' for '>'. (Or you of course may change '&lt;' to '<' manually and so on ... ;-)
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:sam
ID: 1253607
I'm sorry to trouble U again,but could U possibly tell me what else I should change in the script to run it,if I've downloaded it from a WP?
Thanx!
0
 
LVL 86

Expert Comment

by:jkr
ID: 1253608
Ooops, there's no general answer... the only advice i could give you is to look for HTML tags and replace them with their ASCII equivalents...
0
 

Author Comment

by:sam
ID: 1253609
Thanx
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Windows programmers of the C/C++ variety, how many of you realise that since Window 9x Microsoft has been lying to you about what constitutes Unicode (http://en.wikipedia.org/wiki/Unicode)? They will have you believe that Unicode requires you to use…
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question