|
-
Nov 29th, 2000, 04:48 PM
#1
this is making me mad..
I have this code:
Code:
#include <C:\TCWIN45\INCLUDE\myinclude.h>
int main()
{
cout << "hello";
return 0;
}
it works fine in DevC++(which is why I added the whole path)
but the exact same code won't work in borland, it says it can't open the include file, and cout is undefined.... error #2 will be fixed if borland could use the file....
is there any option I can change to make this work??
BTW, the contents of myinclude.h is just some common includes I use, so far this is all it has.
#include <iostream.h>
-
Nov 30th, 2000, 01:31 PM
#2
Monday Morning Lunatic
Just use #include <myinclude.h>
You should never use absolute path names - just add the folder with the headers in to your includes path. BTW - use forward slashes.
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
-
Nov 30th, 2000, 02:52 PM
#3
Member
thanks parksie,
but I tried that.. the only reason I used the absolute path is because I tried it in Dev C++, and it worked perfect, I tried the exact same code with and without the full path, in borland and it didn't work at all.. 
BTW, I would use MS or Dev C++ to compile my programs, but borlands EZWin (the white DOS-Like console thing) is much better looking than DOS...
-
Nov 30th, 2000, 04:58 PM
#4
Monday Morning Lunatic
Before you compile, type:
Code:
SET INCLUDE=%INCLUDE%;C:\TCWIN45\INCLUDE
Then use <myinclude.h> and see what happens (I can't remember the specifics for BC++ since I hate it)
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
-
Dec 1st, 2000, 02:23 PM
#5
-
Dec 1st, 2000, 02:38 PM
#6
Monday Morning Lunatic
Because:
a) The interface is clunky
b) The editor window is weird
c) It makes big EXEs
d) Project management is utterly screwed
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
-
Dec 1st, 2000, 06:27 PM
#7
Can anybody help me?
pleeeeease, they have the exact same compiler at school and it works fine..
-
Dec 16th, 2000, 12:08 PM
#8
I figured out my problem....
TC++ 4.5 is a compiler made for windows 3.1, and it doesn't support long file names,
so I just made the filename shorter, and it worked..
Thanks anyway...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|