473,396 Members | 1,814 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,396 software developers and data experts.

I have problem with the string precompiller

When I run the program in Borland c++ it runs ok. However, if I had to
build an executable for the same program, then it doesn't run, as it
should be.
The warning that I get when run the program is as follows:
"string.cc (658,22) : Cannot create pre-compiled header: code in
header"
I am using strings and I have defined #include <string>.
If anyone knows the solution for my problem, I would appreciate to
hear it from you.
Jul 19 '05 #1
3 2772

"Oldrin" <om*****@yahoo.com> wrote in message
news:dd*************************@posting.google.co m...
When I run the program in Borland c++ it runs ok. However, if I had to
build an executable for the same program, then it doesn't run, as it
should be.
The warning that I get when run the program is as follows:
"string.cc (658,22) : Cannot create pre-compiled header: code in
header"
I am using strings and I have defined #include <string>.
If anyone knows the solution for my problem, I would appreciate to
hear it from you.


This is a stupid problem with Borland which is the compiler giving you too
many warnings. That warning has always been, and always will be, in
string.cc. Most compilers won't give you that warning as they realize that
the code you are including could have a precompiled header. Unfortunately,
the makers of Borland didn't realize that, so they threw that warning in
there. It can be safely ignored. That warning also doesn't tell you the
reason your code is crashing. As this is a compiler-specific question,
you'll probably want to ask somewhere over in the borland.public.something
newsgroups.
Jul 19 '05 #2
"Oldrin" <om*****@yahoo.com> wrote...
When I run the program in Borland c++ it runs ok. However, if I had to
build an executable for the same program, then it doesn't run, as it
should be.
The warning that I get when run the program is as follows:
"string.cc (658,22) : Cannot create pre-compiled header: code in
header"
I am using strings and I have defined #include <string>.
If anyone knows the solution for my problem, I would appreciate to
hear it from you.


If anyone knows, it would be in a newsgroup dedicated to the
Borland compiler you're using. Precompiled headers are not
defined by the language, they are compiler-specific.

Victor
Jul 19 '05 #3
Oldrin wrote:
When I run the program in Borland c++ it runs ok. However, if I had to
build an executable for the same program, then it doesn't run, as it
should be.
The warning that I get when run the program is as follows:
"string.cc (658,22) : Cannot create pre-compiled header: code in
header"
I am using strings and I have defined #include <string>.
If anyone knows the solution for my problem, I would appreciate to
hear it from you.


This has nothing to do with the standard C++ language, which is the
topic of this newsgroup. Had you read the FAQ -- or at the very least
lurked for a while -- you would know this. Not having done so marks you
as being among those who, in the long run, may yet destroy the technical
usenet groups as a valuable resource.

(My calendar says July. WTF does it feel like September?)

--ag

[hint: the problem has to do with a setting on your IDE]

--
Artie Gold -- Austin, Texas

Jul 19 '05 #4

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

Similar topics

0
by: crawlerxp | last post by:
This is the problem: I do not get the output I need when encoding and decoding data using rijndael alghoritm. Look at the code and see what the problem is actually: Please paste this code into...
18
by: muser | last post by:
is string converted to its integer equivalent by minusing it by 48? the function is suppose to check the fifth digit of struct member using the formula contained within the function. The function...
6
by: lenny | last post by:
Hi, I've been trying to use a Sub or Function in VBA to connect to a database, make a query and return the recordset that results from the query. The connection to the database and the query...
18
by: Ian Stanley | last post by:
Hi, Continuing my strcat segmentation fault posting- I have a problem which occurs when appending two sting literals using strcat. I have tried to fix it by writing my own function that does the...
7
by: Ankit Aneja | last post by:
I put the code for url rewrite in my Application_BeginRequest on global.ascx some .aspx pages are in root ,some in folder named admin and some in folder named user aspx pages which are in user...
4
by: David Scemama | last post by:
Hi, I'm trying to read a database file written from a turbo Pascal program. I've set a structure to map the records in the file, but I have problem reading the file when I use VBFixedArray in...
16
by: Dany | last post by:
Our web service was working fine until we installed .net Framework 1.1 service pack 1. Uninstalling SP1 is not an option because our largest customer says service packs marked as "critical" by...
5
by: Stacey Levine | last post by:
I have a webservice that I wanted to return an ArrayList..Well the service compiles and runs when I have the output defined as ArrayList, but the WSDL defines the output as an Object so I was...
8
by: Rinaldo | last post by:
Hi, When I start my program in the debugger, there is no problem, but when not I get an exception. It appears in: private void Upload(string filename, string FTnaam) { MessageBox.Show("in...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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
tracyyun
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...
0
agi2029
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,...

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.