这个弱智问题,网上想找答案还真的不简单。。。最后千辛万苦还是让我找到了 :)
参见 http://archive.gingerall.cz/archives/public/sablot2002/msg01354.html ,这位朋友在HP-UX上编译也碰到这个问题。最后还好,我也不知道怎么有幸看到了答案:
Hi Pavel
By includingor in shandler.h the compile went
fine.
A 'more' on _size_t.h says:
/************************************************
** File:
**
** Description:
** This file is the definitive declaration of
** the size_t type. This file should be included
** by all other header files if they need size_t
** defined.
**
** Warning: The calling header file is responsible
** for determining if size_t can be included
** without polluting namespace.
**************************************************/
HTH
Frank
_____________________________________________________________________
There is this suble bug in how the files are included, I'm hunting it
for a while. I'd really appreciate, if you could help me to solve this
problem.
On some platforms there is some include needed for the size_t type.
Please, try to find, which one is it for your platfrom. I'll try to fix
the configuration, what is unfortunatelly a bit tricky, since the
interface headers (and shandler.h is one of them) must not depend on the
configuration (config.h or platform.h - both are Sablotron files).
So try to hack some include into shandler.h, or change the size_t
identifier to 'unsigned long'. Both of it should help you, the first
choice could help me too. :)
HTH
Pavel
Frank Limstrand wrote:
> Hi folks
>
> I'm trying to compile Sablotron 0.95 on HP-UX 11.11 with no luck.
>
> Doing the standard "INSTALL" routine.
>
>
> short 'make' output:
> ##
> c++ -DHAVE_CONFIG_H -I. -I. -I../../autocfg -g -O2 -c error.cpp -fPIC
-DPIC
> -o .libs/error.lo
> In file included from sablot.h:72,
> from sdom.h:39,
> from error.cpp:38:
> shandler.h:340: type specifier omitted for parameter `size_t'
> shandler.h:340: parse error before `*' token
> *** Error exit code 1
>
> Stop.
> ##
>
> gcc 3.1
>
> Let me know what more you need to know.
>
> With regards
> Frank Limstrand
> National Library of Norway
> ------------------------------------------------------------------------
>
> Archives and info: http://www.gingerall.org/charlie/ga/xml/m_ml.xml
>
> Mailing list maintained by Ginger Alliance
--
Pavel Hlavnicka
Ginger Alliance
呵呵
顺便汗一个,上面这个文章段若是从IE中复制过来,竟然没有换行的。。。,一点格式都没了哦。。。
还是火狐知我心意啊~~~
没有评论:
发表评论