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 4 1737
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
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
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 "somereallylong name" 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. devcjohnsonATex citeDOTcom
-----= 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! =-----
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 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 it is. I'm writing
an application with a Tkinter GUI (Python 2.4, Tcl/Tk 8.4.) and I want to
put a custom icon on the main window.
I've followed (so far as I understand it) the recipe in the eff-bot's
splendid Introduction to Tkinter - see:...
|
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 in the Content-Disposition header:
Content-Disposition: attachment;
filename="This is a sample file with a very long filename
|
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 *a = /* this is a comment "\*/"this is a string"/*" another comment */;
|
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 a strange
result from one file. Here is my program, feel free to critique:
#include <sys/types.h>
#include <dirent.h>
#include <stdio.h>
|
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
| |
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
example, an href to this:
<?php
header("content-type:image/jpeg");
$filename = "image_file.jpg";
$im=ImageCreateFromJPEG($filename);
ImageJPEG($im);
|
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 with VS2005. Please advice.
Thank you.
|
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 N), I generate these output data files.
After running the program once for a given value of N (say N equal to
1) and when the programme is finished, I manually append the generated
filename with the value of N, such as 'Voltage_N1.dat',...
|
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 is hiding. If
you try to compile it gcc -o rosy rosy.cpp -lncurses and run it with
an input file, the delete and backspace characters function great
however when you start pressing keys like, right left or so to
navigate through the file, it...
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |