No hard feelings. I will try to compile that code under VC++ 7.1 a little later. I have not yet used VC++ version 8.0, so I can't comment on it. We will be migrating to it sometime around February( Xbox 360 requirement ). I can however say that every compiler I have ever used has about as many draw backs and quirks as the others. All of the versions of GCC I have used have been ports to make them work with the consoles( ps2, gcc, n64, ps1, etc ). Also I have yet to encounter a C++ standards compliant compiler. It seems like you get about 90-95 percent compliant. I wonder if this is for backwards compatibility with non-compliant code( see MS for loop iterator scope compliance ). Evan On 12/21/06, Bob Pendleton <bob@xxxxxxxxxxxxx> wrote:
On Wed, 2006-12-20 at 23:00 -0600, Evan Bell wrote: > Hey Bob, I was just guessing from the code that was posted in the > email. Then I corrected myself in the follow up email. Just trying to > help. Sorry, sorry... I hate it when I blow up and I hate it even more when I blow up at the wrong person. Sorry again. In my class this last week I saw a situation where the free VC++ express compiler compiled a program properly where the VC++ 7.0 would not compile the code. An other student kept having the compiler crash on a bad piece of code. Admittedly, the code was not correct, but the compiler crashed instead of giving a meaningful error message. I have to conclude that the latest generation of C/C++ compilers from MS are buggy enough to be unsuitable for student use and maybe buggy enough to be avoided by every one. Bob Pendleton > > Evan > > On 12/20/06, Bob Pendleton <bob@xxxxxxxxxxxxx> wrote: > On Wed, 2006-12-20 at 08:56 -0600, Evan Bell wrote: > > It looks like the SETCODE macro being invoked is missing the > first > > argument, or you have an extraneous comma. > > > > You wrote: > > > > SETCODE(, IP, IPaddress, 10, ipEqual(a, b)); > > > > Should be: > > No, the first argument is empty. That is allowed in macros. > > > > > SETCODE( something goes here , IP, IPaddress, 10, ipEqual(a, > b)); > > > > Or: > > > > // removed first comma from argument list > > SETCODE( /*,*/ IP, IPaddress, 10, ipEqual(a, b)); > > > > I have no experience with net2sets.h, but the code you > pasted in your > > email will not compile unless you make one of the above > changes. Try > > removing the first comma. > > Do you seriously believe that I would post code that I had not > compiled? > Or that you are the first person to ever try to use the code? > > Bob Pendleton > > > > > Evan > > > > > > On 12/20/06, Nasikat Tynaeva <nasishka@xxxxxxxxx> wrote: > > Sorry for disturbing you with such problem... > > The problem is that when I use NET2 in my project(I > have > > downloaded .zip source ), > > the compiler generates bunch of errors. > > > > All problems are of the type: > > error C2054: expected '(' to follow 'IP' > > net2sets.h, line 62 > > > > net2sets.h, line 62: > > > > [code] > > > > SETCODE(, IP, IPaddress, 10, ipEqual(a, b)); > > > > [/code] > > > > SETCODE is defined in set.h > > I am new to C macros... I don't know how to fix > these errors. > > If you have time, could you please help me? because > project > > should be done in short time. > > I am running on Windows XP, SP1, using Visual Studio > C++ 7.0 > > > > Thank you in advance, > > Nasikat Tynaeva. > > > -- > +--------------------------------------+ > + Bob Pendleton: writer and programmer + > + email: Bob@xxxxxxxxxxxxx + > + web: www.GameProgrammer.com + > + www.Wise2Food.com + > + nutrient info on 7,000+ common foods + > +--------------------------------------+ > > > > --------------------- > To unsubscribe go to > http://gameprogrammer.com/atxgpsiglist.html > > -- +--------------------------------------+ + Bob Pendleton: writer and programmer + + email: Bob@xxxxxxxxxxxxx + + web: www.GameProgrammer.com + + www.Wise2Food.com + + nutrient info on 7,000+ common foods + +--------------------------------------+ --------------------- To unsubscribe go to http://gameprogrammer.com/atxgpsiglist.html