From: Vadim Zeitlin on
On 1 Mar 2007 22:24:28 -0800 punitha.abirami(a)gmail.com wrote:

> wxWigets-2.8.0
> g++ -v=3.3.6
> gtk+ version=1.2.10
> $uname -a
> Linux punita 2.6.12 #2 SMP Tue Aug 9 23:20:52 CEST 2005 i686 GNU/Linux
>
> when i cofigured wxWidgets -it went fine,but when i make , i got
> following error.
> g++: compilation of header file requested
> make: *** [.pch/wxprec_monodll/wx/wxprec.h.gch] Error 1
>
> i checked if compiler supports if it supports precompiled headers:
> "checking if the compiler supports precompiled headers... yes"

This is really strange. The test is supposed to pass only for gcc 3.4 and
higher. Do you see anything in config.log explaining what goes on here? For
the record, here is the test program used by configure:

int main() {
#if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
There is no PCH support
#endif
#if (__GNUC__ < 3)
There is no PCH support
#endif
#if (__GNUC__ == 3) && \
((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3))) || \
( defined(__INTEL_COMPILER) )
There is no PCH support
#endif
}

What happens if you try to compile it yourself using your gcc 3.3?

> when i tried the following
> --configure --with-gtk=1 --disable-precomp-headers

Why do you build wxGTK1 version? GTK+ 2 is really preferred.

> I did'nt get the above error.Instead i am getting the following error:
>
> src/common/strconv.cpp: In member function `virtual size_t
> wxMBConv_iconv::MB2WC(wchar_t*, const char*, unsigned int) const':
> src/common/strconv.cpp:1867: error: `E2BIG' undeclared (first use this
> function)

Really no idea about this one. E2BIG must be declared in errno.h on your
system, this is a perfectly standard identifier.

Regards,
VZ

--
TT-Solutions: wxWidgets consultancy and technical support
http://www.tt-solutions.com/


---------------------------------------------------------------------
To unsubscribe, e-mail: wx-users-unsubscribe(a)lists.wxwidgets.org
For additional commands, e-mail: wx-users-help(a)lists.wxwidgets.org