> Subject: [gtkmm] Compiling GTKmm2.0.0



>
> Message: 10
> Date: Mon, 15 Dec 2003 14:29:24 +0100
> From: aaron Lee <liwf nada kth se>
> To: gtkmm-list gnome org
> Subject: [gtkmm] Compiling GTKmm2.0.0
>
> Hi, All,
>
> When I downloaded gtkmm2.0.0 package and try to compile it, there were a
> series of strange errors: such as 'cout reference can not found', etc.
> At that moment I used gcc 2.96 version. Then I change the compiler to
> gcc3.2. Everything is completed without any error.
>
> I wonder:
>
> 1) Can gtkmm2.0.0 package only be complied with gcc3.2, Is it possible
> to be compiled with gcc2.96?
>
> 2) I have compiled gtk2.0.6 and glib2.0.6 packages, and other packages
> including my own,  with gcc2.96 . Is there any collision if gtkmm2.0.0
> is compiled with gcc3.2?
>
> Thanks,
>
> Aaron
>
>



Hi ,

"    When I downloaded gtkmm2.0.0 package and try to compile it, there were
a
    series of strange errors: such as 'cout reference can not found', etc.
    At that moment I used gcc 2.96 version. Then I change the compiler to
    gcc3.2. Everything is completed without any error."

actually gcc 2.96 compiler by default links with the libstdc , it doesn't
links with libstdc++ which is needed for c++ (iostream ).
For your confirmation u can do the following test ...
-->>write a sample program named test.cc

    #include <iostream.h>

    main()
    {
         cout << "bdsjhkjdsh" <<endl ;
    }

now on compilation with gcc 2.96 it will give the same error
solutions ===
            1.    gcc -lstdc++ test.cc   ( links with libstdc++)
            2.    g++ test.cc                 (which internally links with
libstdc++)   recmonded for c++ programs

and with gcc3.2 as u told i guess it links internally with libstdc++ by
default .

Ramachandra





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