Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 227
  • Last Modified:

#include error

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
sam
Asked:
sam
  • 3
  • 3
1 Solution
 
jkrCommented:
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
 
samAuthor Commented:
yeah! what shall I do to make it work?
0
 
jkrCommented:
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
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
samAuthor Commented:
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
 
jkrCommented:
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
 
samAuthor Commented:
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.

  • 3
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now