Solved

#include error

Posted on 1998-10-16
6
220 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
Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

 

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: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

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

Suggested Solutions

Title # Comments Views Activity
Element alignment and word wrapping 9 75
Adding a hidden div to each row in a table 6 86
What is atomic operation? 6 64
Why  my code (program) build with old compiler? 11 76
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.
JavaScript has plenty of pieces of code people often just copy/paste from somewhere but never quite fully understand. Self-Executing functions are just one good example that I'll try to demystify here.
The goal of this video is to provide viewers with basic examples to understand how to create, access, and change arrays in the C programming language.
The viewer will learn how to dynamically set the form action using jQuery.

839 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