[atxgpsig] Re: [atxgpsig]

What I said before is incorrect. It actually looks like the first argument
is optional( you can leave it blank but the comma should be there ). This
macro creates code( a function specifically), so it can not be invoked
inside of a function. It must be used at file scope. In net2sets.c, it is
invoked properly.

Without seeing your code and use of the net2sets stuff, I am out of guesses.
I am sure Bob can totally sort this out:)

Evan

On 12/20/06, Evan Bell <evanprime@xxxxxxxxx> 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:

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.

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.



Other related posts: