Compiler errors with CW7

Compiler errors with CW7

Post by Steve Har » Thu, 08 Nov 2001 00:21:33



Hi All,

I'm new to Code Warrior and haven't worked in C in several years.
I've tried to get a project started by using a sample of the hello
world project in the book "Palm OS Programming Bible".  The sample
project from the book compiles fine.  I've set all my project
preferences exactly the same as their sample, but when I try to
compile, I get a gazillion errors beginning with:

Error   : declaration syntax error
mslconfig line 219     namespace std {

Error   : declaration syntax error
mslconfig line 225     } // namespace std

Error   : declaration syntax error
mslconfig line 238   ::std

Can anyone point me to a solution?  I must have something defined
somewhere that shouldn't be there.  My intension is to use straight C
as opposed to C++.

I've posted this message on another group and gotten suggestions
having to do with namespace and access paths.  I don't know where to
look for namespace stuff and I don't have any access paths defined
except "project".  The thing that confuses me is that both projects
(mine and the sample) have exactly the same project preferences.  The
sample project compiles but mine doesn't.  The only difference is that
I created my project and the other came on the books' CD.

Thanks for any help,
Steve

 
 
 

Compiler errors with CW7

Post by Ben Combe » Thu, 08 Nov 2001 00:47:07


Quote:> I've posted this message on another group and gotten suggestions
> having to do with namespace and access paths.  I don't know where to
> look for namespace stuff and I don't have any access paths defined
> except "project".  The thing that confuses me is that both projects
> (mine and the sample) have exactly the same project preferences.  The
> sample project compiles but mine doesn't.  The only difference is that
> I created my project and the other came on the books' CD.

Hi... I'm the tech lead for CodeWarrior, and I posted the response over
on the other group.

You do have additional access paths other than {Project}.  At the top of
the access path panel, there are radio buttons for system and user
paths.  Click on the "System" selection.  Check and see if one is
"{Compiler}" or "{Compiler}MSL".  You should make sure the path to
"{Compiler}Palm OS [3.5] Support" is ahead of that path.  If you have
the "{Compiler}" one, then you probably built this project from an empty
project rather than starting from a stationery file, so it should be
changed to just point into the Palm OS Support tree.

 
 
 

Compiler errors with CW7

Post by Steve Har » Thu, 08 Nov 2001 03:20:10


There IS a God!!!!  Thank you, thank you, thank you!!!!



Quote:>> I've posted this message on another group and gotten suggestions
>> having to do with namespace and access paths.  I don't know where to
>> look for namespace stuff and I don't have any access paths defined
>> except "project".  The thing that confuses me is that both projects
>> (mine and the sample) have exactly the same project preferences.  The
>> sample project compiles but mine doesn't.  The only difference is that
>> I created my project and the other came on the books' CD.

>Hi... I'm the tech lead for CodeWarrior, and I posted the response over
>on the other group.

>You do have additional access paths other than {Project}.  At the top of
>the access path panel, there are radio buttons for system and user
>paths.  Click on the "System" selection.  Check and see if one is
>"{Compiler}" or "{Compiler}MSL".  You should make sure the path to
>"{Compiler}Palm OS [3.5] Support" is ahead of that path.  If you have
>the "{Compiler}" one, then you probably built this project from an empty
>project rather than starting from a stationery file, so it should be
>changed to just point into the Palm OS Support tree.

 
 
 

Compiler errors with CW7

Post by Graham McKechni » Tue, 13 Nov 2001 07:40:33


Hi Ben,

Hi... I'm the tech lead for CodeWarrior, and I posted the response over
on the other group.

I'm looking for other NG's could you tell me aboutthis other group

Graham


Quote:> > I've posted this message on another group and gotten suggestions
> > having to do with namespace and access paths.  I don't know where to
> > look for namespace stuff and I don't have any access paths defined
> > except "project".  The thing that confuses me is that both projects
> > (mine and the sample) have exactly the same project preferences.  The
> > sample project compiles but mine doesn't.  The only difference is that
> > I created my project and the other came on the books' CD.

> Hi... I'm the tech lead for CodeWarrior, and I posted the response over
> on the other group.

> You do have additional access paths other than {Project}.  At the top of
> the access path panel, there are radio buttons for system and user
> paths.  Click on the "System" selection.  Check and see if one is
> "{Compiler}" or "{Compiler}MSL".  You should make sure the path to
> "{Compiler}Palm OS [3.5] Support" is ahead of that path.  If you have
> the "{Compiler}" one, then you probably built this project from an empty
> project rather than starting from a stationery file, so it should be
> changed to just point into the Palm OS Support tree.

 
 
 

Compiler errors with CW7

Post by Ben Combe » Tue, 13 Nov 2001 17:10:43



Quote:> Hi Ben,

> Hi... I'm the tech lead for CodeWarrior, and I posted the response
over
> on the other group.

> I'm looking for other NG's could you tell me aboutthis other group

news.falch.net is a newsserver hosting a variety of pilot.programmer
groups.

You also can go to news.palmos.com for Palm's developer lists, but you
have to signup at www.palmos.com first in their developer section.

 
 
 

1. An error message from a C++ mex file using CW7 in Mac

I put my routine on this link, please download it.
http://www1.coe.neu.edu/~gyang/file/
Before you compile it, you've to set the path to matlab and nidaq in
square preferences.  You've also to download NIDAQ from
http://www.cvs.rochester.edu/people/b_singer/IOCard/

I'm not familiar with the CW and C++.  So I made this routine by using
Ben's IOCard_nidaq.mex (the above link) and Alaa Makdissi daq.dll
 http://www.mathworks.com/matlabcentral/fileexchange/loadFile.do?objec...

I used CW7.0 in Mac to compile it and got this error message
___________________________________
Link error:  undefined _cut_fp2unsigned' (code)
           Reference from _get_numeric <UL> (const mxArray_tag*,
unsigned long*)' in
 square_mexFunction.cp
___________________________________

I will appreciate if you could give me any suggestion about this.

Deyue Yu

2. Spreadsheet checker software

3. link error on new and delete in CW7

4. Hub vs. Switch

5. CW7 - MSL <locale> link error

6. Amiga + IBM Mouse = fizzle

7. Link error - undefined standard functions using CW7.2 under OS 9.2

8. CW7.2 and MacOSX 10.1.3: undefined symbol errors

9. CW7 Printing error

10. Emulation errors in CW7 & SDk3.5

11. CW7 Link Error could not open file *.tmp

12. gnu c++ internal compiler errors : new compiler release available ?