Errors linking Balsa




I'm using gcc 2.7.2.3, and get clean builds for all of Gnome. Balsa,
though, seems to be unable to find several functions in libmutt, including
mutt_set_flag. Any suggestions?

This appears to be related to the order of libraries on the command line.

Cheers,
Eric

gcc -g -O2 -o balsa balsa-app.o balsa-index.o balsa-message.o index-child.o local-mailbox.o mailbox-manager.o main-window.o main.o mblist-window.o message-window.o new-mailbox.o pref-manager.o save-restore.o sendmsg-window.o addrbook.o addrbook-manager.o balsa-init.o ../libmutt/libmutt.a ../libbalsa/libbalsa.a -L/opt/gnome/lib -lgnomeui -lgdk_imlib -ltiff -lgif -ljpeg -lpng -lz -lz -lSM -lICE -L/opt/gnome/lib -L/usr/X11R6/lib -lgtk-1.1 -lgdk-1.1 -lglib-1.1 -lXext -lX11 -lm -lgnome -lgnomesupport -L/opt/gnome/lib -lglib-1.1 -ldl -lgtkxmhtml -lXpm -ljpeg -lpng -lz -lz -lSM -lICE -L/opt/gnome/lib -L/usr/X11R6/lib -lgtk-1.1 -lgdk-1.1 -lglib-1.1 -lXext -lX11 -lm -lcrypt
../libbalsa/libbalsa.a(mailbox.o): In function `mailbox_open_ref':
/home/emk/gnome/balsa/libbalsa/mailbox.c:266: undefined reference to `mx_open_mailbox'
../libbalsa/libbalsa.a(mailbox.o): In function `mailbox_open_unref':
/home/emk/gnome/balsa/libbalsa/mailbox.c:315: undefined reference to `mx_close_mailbox'
../libbalsa/libbalsa.a(mailbox.o): In function `mailbox_check_new_messages':
/home/emk/gnome/balsa/libbalsa/mailbox.c:330: undefined reference to `mx_check_mailbox'
../libbalsa/libbalsa.a(mailbox.o): In function `message_reply':
/home/emk/gnome/balsa/libbalsa/mailbox.c:848: undefined reference to `mutt_set_flag'
../libbalsa/libbalsa.a(mailbox.o): In function `message_delete':
/home/emk/gnome/balsa/libbalsa/mailbox.c:886: undefined reference to `mutt_set_flag'
../libbalsa/libbalsa.a(mailbox.o): In function `message_undelete':
/home/emk/gnome/balsa/libbalsa/mailbox.c:903: undefined reference to `mutt_set_flag'



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