Re: [gtk-list] Compile problems



Atto McMicro wrote:
> 
> I have compiled and installed glib-1.2.1 and gtk+-1.2.1.
> Yet, I get an error when I try the very first program in the GTK
> tutorial. I have named the source file "gtkt.cpp" and I compiled as
> following (as shown in the tutorial):
> 
>  gcc gtkt.cpp -o gtkt `gtk-config --cflags --libs`
> 
> I get the following error:
> 
> gcc: installation problem, cannot exec `cc1plus': No such file or
> directory

Try to name your file gtkt.c instead. The .cpp extension is used for C++
programs and it looks like you don't have C++ installed.

///Johan

--
! Ericsson Infotech AB	    ! ECN: 863 3554                         !
! Johan Groth KS/EIN/T/R    ! Phone: +46 54 19 3554                 !
! Box 1038                  ! Fax:   +46 54 19 3466                 !
! Lagergrens gata 3	    ! Email: Johan.Groth(at)ein.ericsson.se !
! S-651 15 Karlstad, Sweden ! Email: Johan.Groth(at)ks.ericsson.se  !



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