[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Problem compiling code with va_list assignment



Hi,

I've been trying to understand the cause of the problem I ran into and
searched a great deal of time this weekend for a solution; I can't figure it
out yet.

Basically, I have a c++ class with a field variable declared as

Class Foo {
  protected:
    va_list ap;

    ...

  public:
    setVaArgs(va_list rap) {
      ap = rap;
    }
}

I've got a setter method in this class to pass a va_list and store it into a
field var.

When I compile this code, I get the following error: incompatible types in
assignment of '__va_list_tag *' to '__va_list_tag[1]' at the line of the
assignment.

This doesn't seem to make sense, and I would appreciate if someone could
help me and point me in the right direction. Is there a special way for
handling va_list on the powerpc? I am using gcc 2.95.4.

Thanks in advance,

Laurent



Reply to: