Solved

#include error

Posted on 1998-10-16
6
211 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
Comment Utility
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
Comment Utility
yeah! what shall I do to make it work?
0
 
LVL 86

Expert Comment

by:jkr
Comment Utility
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
6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

 

Author Comment

by:sam
Comment Utility
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
Comment Utility
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
Comment Utility
Thanx
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

This is a short and sweet, but (hopefully) to the point article. There seems to be some fundamental misunderstanding about the function prototype for the "main" function in C and C++, more specifically what type this function should return. I see so…
Introduction Since I wrote the original article about Handling Date and Time in PHP and MySQL (http://www.experts-exchange.com/articles/201/Handling-Date-and-Time-in-PHP-and-MySQL.html) several years ago, it seemed like now was a good time to updat…
The goal of this video is to provide viewers with basic examples to understand opening and reading files in the C programming language.
The viewer will learn how to dynamically set the form action using jQuery.

772 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now