Re: gtkmm don't link properly on windows



Well, I must be doing something seriously wrong, cause I put some assignments like that into an existing program of mine, and it would not compile.

Bob

Yose Widjaja wrote:

Hi,

but that can't be, it's in the documentation and that thing compiles under linux? The thing is I am trying to get it to work at home with my windows box.

Cheers

On Wed, 29 Mar 2006, Bob Caryl wrote:

Glib::ustring does not support the "<<" and ">>" operators.

Bob

Yose Widjaja wrote:

Hi,

#include <glib.h>
#include <glibmm.h>

That's all that's necessary to use ustring right? (i don't think the glibmm is necessary even, after using glib.h)

Thanks

On Tue, 28 Mar 2006, Hargobind Khalsa wrote:

Are you including the necessary headers?

good luck!

On 3/28/06, Yose Widjaja <wyos cse unsw edu au> wrote:


Hi,

I have dev-c++ and mingw32 gcc on my windows box. Just yesterday night, I
installed gtkmm as according to this instruction:

http://www.gtkmm.org/docs/gtkmm-2.4/docs/tutorial/html/ape.html

However, when I tried to compile a simple c++ file using ustring, it spat
out this kind of messages:

C:\DOCUME~1\dante\LOCALS~1\Temp/cc4eaaaa.o(.text+0x73):main.c: undefined
reference to `Glib::ustring::ustring()'
C:\DOCUME~1\dante\LOCALS~1\Temp/cc4eaaaa.o(.text+0x88):main.c: undefined
reference to `Glib::ustring::ustring()'
C:\DOCUME~1\dante\LOCALS~1\Temp/cc4eaaaa.o(.text+0x9d):main.c: undefined
reference to `Glib::ustring::ustring()'

The linker and include flags, I obtained from pkg-config --cflags --libs
gtkmm-2.4.

the c file is just something like this:

using Glib::ustring;
using std::string;
using std::cin;
using std::cout;

//////////////////////////////////////////////////////////////////////////////////////// int main(){

    ustring a, b, c, d, e, f;

    cin >> a;
    cin >> b;
    cin >> c;
    cin >> d;
    cin >> e;
    cin >> f;

    cout << a << b << c << d << e << f;
    return 0;
}

Sorry for the long question. Does anybody have any idea why?

Cheers

-----------------------------------
Yose Widjaja
3rd Year Software Engineering

page : http://www.cse.unsw.edu.au/~wyos/
mail : wyos cse unsw edu au
        wyos gmail com
msn  : afterhorizon hotmail com
icq  : 75090197

research interests :
    exotic software engineering methods
    sentient operating systems
    7th level languages
    man-machine integration
    ancient cryptozoology
, ` , ` , ` , ` , ` , ` , ` , ` , `
-----------------------------------

_______________________________________________
gtkmm-list mailing list
gtkmm-list gnome org
http://mail.gnome.org/mailman/listinfo/gtkmm-list



-----------------------------------
Yose Widjaja
3rd Year Software Engineering

page : http://www.cse.unsw.edu.au/~wyos/
mail : wyos cse unsw edu au
       wyos gmail com
msn  : afterhorizon hotmail com
icq  : 75090197

research interests :
   exotic software engineering methods
   sentient operating systems
   7th level languages
   man-machine integration
   ancient cryptozoology
, ` , ` , ` , ` , ` , ` , ` , ` , `
-----------------------------------

_______________________________________________
gtkmm-list mailing list
gtkmm-list gnome org
http://mail.gnome.org/mailman/listinfo/gtkmm-list




-----------------------------------
Yose Widjaja
3rd Year Software Engineering

page : http://www.cse.unsw.edu.au/~wyos/
mail : wyos cse unsw edu au
       wyos gmail com
msn  : afterhorizon hotmail com
icq  : 75090197

research interests :
   exotic software engineering methods
   sentient operating systems
   7th level languages
   man-machine integration
   ancient cryptozoology
, ` , ` , ` , ` , ` , ` , ` , ` , `
-----------------------------------



begin:vcard
fn:Robert Caryl
n:Caryl;Robert
org:Fiscal Systems, Inc.
adr:;;102 Commerce Circle;Madison;AL;35758;USA
email;internet:bob fis-cal com
title:Senior Software Design Engineer
tel;work:356-772-8920 X108
x-mozilla-html:TRUE
url:http://www.fis-cal.com
version:2.1
end:vcard



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