Go Back   FlashFXP Forums > >

Programming Need help with C/C++/Delphi? Ask here and make us all laugh.

Closed Thread
 
Thread Tools Rate Thread Display Modes
Old 11-21-2005, 02:24 AM   #1
lordoflife1
Junior Member
 
Join Date: Nov 2005
Posts: 10
Default unable to open include file....(c++)

hey guys i need help
Unable to open include file 'string.h
Unable to open include file 'iostream.h

any info..im a beginer so i dont know how to fix it
-thanks-
lordoflife1 is offline  
Old 11-21-2005, 03:02 PM   #2
_panic_
Senior Member
Ultimate Scripter
 
Join Date: Jul 2005
Posts: 153
Default

Quote:
Originally Posted by lordoflife1
hey guys i need help
Unable to open include file 'string.h
Unable to open include file 'iostream.h

any info..im a beginer so i dont know how to fix it
-thanks-
are you trying to do this from visual studio? can you post the top of the file (the part with the #include lines) here in the forum?
_panic_ is offline  
Old 11-21-2005, 10:00 PM   #3
lordoflife1
Junior Member
 
Join Date: Nov 2005
Posts: 10
Default

ill put the entior thing up...not much im just starting

// C++ code tamplate
#include <iostream.h>
#include <string.h>
void main()
{
// code goes hear!!!!
}

its not disined to do any thing
lordoflife1 is offline  
Old 11-21-2005, 10:05 PM   #4
_panic_
Senior Member
Ultimate Scripter
 
Join Date: Jul 2005
Posts: 153
Default

just a quick note on the pedantic front, you return value from main should be an 'int', not 'void'. but that isn't causing your problem...

what is the name of the file you have this code in? it should have a .cpp extension. further, how is it that you are trying to build the code? can you describe that process? it will help in determining why you are seeing this problem.
_panic_ is offline  
Old 11-21-2005, 11:16 PM   #5
lordoflife1
Junior Member
 
Join Date: Nov 2005
Posts: 10
Default

the name is template.cpp i dont get what your asking?? the book says that all i have to comply it in cmd....im a real beginer........i need help
lordoflife1 is offline  
Old 11-21-2005, 11:38 PM   #6
lordoflife1
Junior Member
 
Join Date: Nov 2005
Posts: 10
Default

dude im a noob.....a 14 year old one
just so you know
lordoflife1 is offline  
Old 11-22-2005, 04:23 AM   #7
FTPServerTools
Senior Member
FlashFXP Beta Tester
ioFTPD Scripter
 
Join Date: Sep 2002
Posts: 543
Default

It depends on your compiler. You should basically set your include paths properly, then it will compile.
FTPServerTools is offline  
Old 11-22-2005, 01:49 PM   #8
dasOp
Member
 
Join Date: Jan 2003
Posts: 91
Default

Um, are you writing C or C++?
iostream.h doesnt exist anymore, no standard c++ headers have .h at the end. and if it is c++, you either want <string> or <cstring> for the old C header.
dasOp is offline  
Old 11-22-2005, 08:52 PM   #9
_panic_
Senior Member
Ultimate Scripter
 
Join Date: Jul 2005
Posts: 153
Default

Quote:
Originally Posted by lordoflife1
the name is template.cpp i dont get what your asking?? the book says that all i have to comply it in cmd....im a real beginer........i need help
i need to you show me the line you type into cmd that gives you this error message. it is likely you need to include a '/I' options (which you should be able to find from your compiler documentation) pointing to the right files, but the advice below also holds, try removing the '.h' from the end of the filenames in your #include lines. they are no longer required and in some cases will generate the error you are seeing.
_panic_ is offline  
Old 11-22-2005, 08:54 PM   #10
_panic_
Senior Member
Ultimate Scripter
 
Join Date: Jul 2005
Posts: 153
Default

Quote:
Originally Posted by lordoflife1
dude im a noob.....a 14 year old one
just so you know
no worries about being 14. we focus on what is real around here, and your age doesn't really matter. you should, however, tone down the whining (begging to be helped really won't get you anywhere). it is obvious you are a n00b from they way you are talking, i didn't need it pointed out to me

anyway, let me know how it is going after you echo the text you are typing into cmd.exe.
_panic_ is offline  
Old 11-23-2005, 06:57 PM   #11
lordoflife1
Junior Member
 
Join Date: Nov 2005
Posts: 10
Default

N:\Documents and Settings\Randall>c:\borland\bcc55\bin\bcc32.exe n:\pro\template
.cpp is what it shows befor i hit enter and the thing w/o .h didnt work........ill be playin half life
lordoflife1 is offline  
Old 11-24-2005, 09:49 AM   #12
_panic_
Senior Member
Ultimate Scripter
 
Join Date: Jul 2005
Posts: 153
Default

Quote:
Originally Posted by lordoflife1
N:\Documents and Settings\Randall>c:\borland\bcc55\bin\bcc32.exe n:\pro\template
.cpp is what it shows befor i hit enter and the thing w/o .h didnt work........ill be playin half life
the error message you get is because bcc32.exe can't find the files iostream.h and string.h. you need to tell bcc32.exe how to find these files.

first, your're going to have to find the path to these files by searching for them on your computer. the are probably in c:\borland\... somewhere. second, you're going to have to use the /I option to bcc32.exe and include this path:

c:\borland\bcc55\bin\bcc32.exe /Ic:\path\to\includes template.cpp

i don't have documentation for bcc32.exe handy, so it *might* not be /I you need to use. you'll have to check your compiler documentation for how to specify "include header paths" if it doesn't work.

good luck!
_panic_ is offline  
Old 11-25-2005, 02:23 AM   #13
lordoflife1
Junior Member
 
Join Date: Nov 2005
Posts: 10
Default

o god
lordoflife1 is offline  
Old 11-25-2005, 02:32 AM   #14
lordoflife1
Junior Member
 
Join Date: Nov 2005
Posts: 10
Default

found it.....but theres a long list o boy............................................... .......
lordoflife1 is offline  
Old 11-25-2005, 02:40 AM   #15
lordoflife1
Junior Member
 
Join Date: Nov 2005
Posts: 10
Default

ok it dont work
lordoflife1 is offline  
Closed Thread

Tags
beginer, file, include, open, unable

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 01:43 PM.

Parts of this site powered by vBulletin Mods & Addons from DragonByte Technologies Ltd. (Details)