Re: Work for developers
Hartmut Koptein <koptein@et-inf.fho-emden.de> writes:
> The `initializer element not constant` is like this:
>
> FILE *example=stdin;
>
> This is not correct for glibc-2.1. Please split it.
What exactly is the problem?
stdin should always be present before it starts running your code, and
there's no const up there.
This should definately not be a problem if it is in any function
(including main). If it's global, I really don't see the problem
there either -- stdin should be initialized beforehand by libc, then
example gets set to it.
John
--
John Goerzen Linux, Unix consulting & programming jgoerzen@complete.org |
Developer, Debian GNU/Linux (Free powerful OS upgrade) www.debian.org |
----------------------------------------------------------------------------+
Visit the Air Capital Linux Users Group on the web at http://www.aclug.org
Reply to: