473,398 Members | 2,125 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

long filename problem with new include format

Hi,

My (pre)compiler(s) (borland C++ builder 5 and g++) both seems to have a
problem with the new include format.

In stead of #include <iostream.h> I want to say #include <iostream>.

This works fine for short filenames (<8 chars), but it doesn't work for long
filenames.

Am I doing something wrong here?

Greetings

Anthony
Jul 22 '05 #1
4 1727
Anthony Lansbergen wrote:
My (pre)compiler(s) (borland C++ builder 5 and g++) both seems to have a
problem with the new include format.

In stead of #include <iostream.h> I want to say #include <iostream>.

This works fine for short filenames (<8 chars), but it doesn't work for long
filenames.

Am I doing something wrong here?


Aside from using a wrong operating system? Hard to say. It would
be best to ask in a newsgroup dedicated to the compiler you're using.
The language cannot help you overcome an OS deficiency.

Victor
Jul 22 '05 #2
Victor Bazarov wrote:
Anthony Lansbergen wrote:
My (pre)compiler(s) (borland C++ builder 5 and g++) both seems to
have a problem with the new include format.

In stead of #include <iostream.h> I want to say #include <iostream>.

This works fine for short filenames (<8 chars), but it doesn't work
for long filenames.

Am I doing something wrong here?


Aside from using a wrong operating system? Hard to say. It would
be best to ask in a newsgroup dedicated to the compiler you're using.
The language cannot help you overcome an OS deficiency.

Victor


Windows supports long filenames, it has been years since it didn't... Funny
how the Windows ports of GCC and related seem to use short file names, but
real Windows tools don't.

- Pete
Jul 22 '05 #3
Petec wrote:
Victor Bazarov wrote:
Anthony Lansbergen wrote:
My (pre)compiler(s) (borland C++ builder 5 and g++) both seems to
have a problem with the new include format.

In stead of #include <iostream.h> I want to say #include <iostream>.

This works fine for short filenames (<8 chars), but it doesn't work
for long filenames.

Am I doing something wrong here?


Aside from using a wrong operating system? Hard to say. It would
be best to ask in a newsgroup dedicated to the compiler you're using.
The language cannot help you overcome an OS deficiency.

Victor

Windows supports long filenames, it has been years since it didn't... Funny
how the Windows ports of GCC and related seem to use short file names, but
real Windows tools don't.

- Pete


The Windows ports of GCC and related most certainly _do_ support* long
filenames. Funnier still is to see your subjective observations about
the source of these tools, from other posts read, reflect in this one -
or so it "seems".

*By supported I do not mean "somereallylongname" converted to
"somere~1"; something "real Windows" is known for before NT/2000 on.
This _may_ help the OP otherwise follow the advice of Victor.
Humbly,
Chris a.k.a. devcjohnsonATexciteDOTcom
-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----== Over 100,000 Newsgroups - 19 Different Servers! =-----
Jul 22 '05 #4
In message <40*********************@news.xs4all.nl>, Anthony Lansbergen
<no*****@nomail.nl> writes
Hi,

My (pre)compiler(s) (borland C++ builder 5 and g++) both seems to have a
problem with the new include format.

In stead of #include <iostream.h> I want to say #include <iostream>.

This works fine for short filenames (<8 chars), but it doesn't work for long
filenames.
BCB5 works perfectly well for me with long filenames.
Am I doing something wrong here?


Forgetting (the moral equivalent of) using namespace std; ?

--
Richard Herring
Jul 22 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Tim Jarman | last post by:
Apologies in advance for the long post - I wanted to be sure I included all the relevant details. The answer is probably very, very simple. I am doing something stupid here, but I don't know what...
2
by: Martin Körner | last post by:
Hi NG, I am using email module for creating mails with attachment (and then sending via smtplib). If the name of the attachment file is longer than about 60 characters the filename is wrapped...
11
by: James Hu | last post by:
This program is long. I don't really want to bore everyone with the details, but it handles wierd cases like: /\ * this is a comment *\ / #define FOO ??/* this is not a comment */ char...
9
by: fybar | last post by:
Hi, I am in the progress of writing a program that will read in the contents of a directory and then do some stuff to some of the files. So far I am getting the contents of the directory but I get...
12
by: __frank__ | last post by:
Which format I have to use in scanf, to format a long long int (64bits int __int64 in MS VC++). Thanks in advance
4
by: B Squared | last post by:
I'm trying to pass a filename (which is a jpeg image) to a php function / file so that it will display. I know that its simple to get PHP to display an image hardcoding in the filename. For...
7
by: pedagani | last post by:
Dear comp.lang.c++, I'm trying to read a file with very long filename using ifstream. Although, the file exists the file open for read fails. Is there a restriction on the size? I'm using winXP...
12
by: vj | last post by:
I am using Borland C++. I run a program which generates output data files, say 'Voltage.dat', 'Current.dat'. I have a variable in my code (say N), and for various values of N (for each value of...
6
by: dimitris.papastamos | last post by:
Hello everyone, I've been working on a simple editor myself and I seem to be having some problems with ncurses or so. I have been debugging this program quite a lot trying to detect where the bug...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.