This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Using structs in target .opt file?


I cannot figure out whether it's possible to use custom structure
types in an .opt file like this:

  TargetVariable
  const struct foo *bar

Including the file that defines the struct type does not help.

  HeaderInclude
  <path>/struct_foo.h

==>

make[2]: Entering directory `.../build-march/gcc'
build/gengtype  \
                    -S ../../gcc -I gtyp-input.list -w tmp-gtype.state
/bin/sh ../../gcc/../move-if-change tmp-gtype.state gtype.state
build/gengtype  \
                    -r gtype.state
warning: structure `foo' used but not defined
(null):0: incomplete structure `foo'
warning: structure `foo' used but not defined
(null):0: incomplete structure `foo'
make[2]: *** [s-gtype] Error 1

Is there a way to do this (other than just using "void *")?

Ciao

Dominik ^_^  ^_^

-- 

Dominik Vogt
IBM Germany


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]