473,732 Members | 2,175 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1608
In article <b8************ *************@p osting.google.c om>,
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.pr ogrammer.<somet hing>

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********@hot mail.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****@rivaban d.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
2365
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 -I/Users/terryr/tmp/php-4.3.10/include -I/Users/terryr/tmp/php-4.3.10/main -I/Users/terryr/tmp/php-4.3.10 -I/Users/terryr/tmp/php-4.3.10/Zend -I/Users/terryr/tmp/php-4.3.10/ext/xml/expat -no-cpp-precomp -no-cpp-precomp -I/Users/terryr/tmp/php-4.3.10/TSRM -g -O2 -c...
2
1784
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': /Users/terryrichards/tmp/php-4.3.11/ext/zlib/zlib.c:440: warning: pointer targets in passing argument 1 of 'compress2' differ in signedness .... /Users/terryrichards/tmp/php-4.3.11/ext/session/session.c: In function
0
1093
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 What is this stuff? Would any of this be helpful in my search for an automated conversions of the exported xml file generated by CodeWarrior
2
2195
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 see if we are compiling with debug turned on? thanx, Søren
0
563
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 binary distribution (the .dmg package). I can add libmysqld.a to the CodeWarrior project but when linking, there're lots of undefined symbols referenced from libmysqld.a. I assume it also needs the equivalent of -lz and -lm to be added to...
0
1221
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 --with-comment --with-debug sql_list.h: At global scope: sql_list.h:401: warning: inline function `base_ilist::~base_ilist()'
1
2211
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
1758
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 my XT machine? A grahpical interface? Thanks a lot for any thoughts on this. I know I should get a newer compiler but if I could save the money for the time being that would be great. Thanks.
10
5426
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 succession one for EACH transfer. Thanks as always :) Tux
0
8773
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,...
0
9445
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, 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...
0
9306
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 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...
1
9234
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8186
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, 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...
1
6733
isladogs
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...
0
4548
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4805
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2721
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.