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

Codewarrior for MacOSX warning msgs

even though my code works and everything i keep getting these annoying
messages.
can anyone help?

Path for the user defined root 'CT_INSTALL' cannot be found ''

Warning : illegal multi-line string constant
AddFans.cp line 343 char *start1 = strstr(start, "
First Name="); //this one is due to the fact that for the life of me
i cant get strstr to recognize a '\r'
Link Warning : ignored 'tolower' (code) in MSL_All_Mach-O_D.lib
Previously defined in AddFans.cp

Link Warning : ignored '__fpclassifyd' (code) in MSL_All_Mach-O_D.lib
Previously defined in AddFans.cp
Jul 22 '05 #1
4 1595
In article <b8*************************@posting.google.com> ,
ad****@rivaband.com (Sean Bartholomew) wrote:
even though my code works and everything i keep getting these annoying
messages.
can anyone help?

Path for the user defined root 'CT_INSTALL' cannot be found ''
These messages have little to do with c++, except for the next one, so
you should probably post to comp.sys.mac.programmer.<something>

For the first one above, you have defined a source tree named
"CT_INSTALL" and the path that has been specified can not be found. Go
to Edit->Preferences->Source Trees to examine it.
Warning : illegal multi-line string constant
AddFans.cp line 343 char *start1 = strstr(start, "
First Name="); //this one is due to the fact that for the life of me
i cant get strstr to recognize a '\r'


C/C++ do not allow multiline string literals, hence the warning. I don't
know what you mean when you say that strstr won't recognize the \r
escape.

-Chad
Jul 22 '05 #2
On 12 Jul 2004 05:43:05 -0700, ad****@rivaband.com (Sean Bartholomew)
wrote:
even though my code works and everything i keep getting these annoying
messages.
can anyone help?

Path for the user defined root 'CT_INSTALL' cannot be found ''

Warning : illegal multi-line string constant
AddFans.cp line 343 char *start1 = strstr(start, "
First Name="); //this one is due to the fact that for the life of me
i cant get strstr to recognize a '\r'


You aren't allowed newlines in string literals. Perhaps you want to
search for '\n'. When reading in files in text mode, perhaps \r is
converted to \n.

Tom
Jul 22 '05 #3
ur a genius Tom
thanks
tom_usenet <to********@hotmail.com> wrote in message news:<17********************************@4ax.com>. ..
On 12 Jul 2004 05:43:05 -0700, ad****@rivaband.com (Sean Bartholomew)
wrote:
even though my code works and everything i keep getting these annoying
messages.
can anyone help?

Path for the user defined root 'CT_INSTALL' cannot be found ''

Warning : illegal multi-line string constant
AddFans.cp line 343 char *start1 = strstr(start, "
First Name="); //this one is due to the fact that for the life of me
i cant get strstr to recognize a '\r'


You aren't allowed newlines in string literals. Perhaps you want to
search for '\n'. When reading in files in text mode, perhaps \r is
converted to \n.

Tom

Jul 22 '05 #4
"Sean Bartholomew" <ad****@rivaband.com> wrote:
i keep getting these annoying messages. can anyone help?
Perhaps. I can certainly help you with THIS one:
Warning : illegal multi-line string constant
AddFans.cp line 343 char *start1 = strstr(start, "
First Name=");


Use this:

char *start1 = strstr(start, "First Name=");

instead of this:

char *start1 = strstr(start, "
First Name=");

If you really do need to break a string literal
accross two or more lines, end all but the last
line with '\', like so:

std::cout << "Now, after eating three large, ripe, red \
tomatos, she was finally satiated, and was looking for \
a long, tall, cool drink to quench her thirst.";
--
Cheers,
Robbie Hatley
Tustin, CA, USA
email: lonewolfintj at pacbell dot net
web: home dot pacbell dot net slant earnur slant

Jul 22 '05 #5

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

Similar topics

12
by: Terry Richards | last post by:
i have macosx 10.2.8. i am trying to install php-4.3.10. i am getting: make gcc -Iext/standard/ -I/Users/terryr/tmp/php-4.3.10/ext/standard/ -DPHP_ATOM_INC...
2
by: Terry Richards | last post by:
i am getting lots of errors such as:"...differs in signedness" what is it from? /Users/terryrichards/tmp/php-4.3.11/ext/zlib/zlib.c: In function 'zif_gzcompress':...
0
by: brianhray | last post by:
When looking for a pythonic way to convert some Mac codewarrior projects, I came across some files hidden deap into the Python.Framework under: plat-mac/lib-scriptpackages/CodeWarrior ...
2
by: Søren Grønbech | last post by:
I'm using Codewarrior for Windows and for example I can check the peephole option to see if we are currently compiling with peephole optimization on... #if __option(peephole) Is there a way to...
0
by: Desmond L | last post by:
I'm tring to use CodeWarrior 9 to build a Mach-O target application on Mac OS X that uses the embedded mysql server library (libmysqld.a). I'm using the library that comes from standard Mac OS X...
0
by: Terry Richards | last post by:
does anybelly know why the following happens? i am using macosx 10.4 and ./configure --prefix=/usr/local/mysql --with-unix-socket-path=/usr/local/mysql/run/mysql_socket --with-mysqld-user=mysql...
1
by: Niluge | last post by:
I work with a person who use codewarrior. We want to port his work under Visual C++ but we don't how to do.
32
by: BillJosephson | last post by:
Hi, I want to write a program in Java or C++, and just discovered on my bookshelve Codewarrior 7. It says Windows 95, 98, NT, 2000, ME. Can I develop a command line application that will work on...
10
tuxalot
by: tuxalot | last post by:
When changing paths to a BE db located on a network via DoCmd.TransferDatabase is there a way to suppress the macro warning messages that appear? I have 14 tables, and 14 warning messages appear in...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
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...

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.