Support Requests item #1447819, was opened at 2006-03-11 05:45 Message generated for change (Comment added) made by lschiere You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=200235&aid=1447819&group_id=235 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None >Status: Pending Priority: 5 Submitted By: kxxxxk (kxxxxk) Assigned to: Nobody/Anonymous (nobody) Summary: undefined reference to gaim_account_connect Initial Comment: Hi. I wanted to write little application which could connect to MSN using gaim API. basically code is this ( in c++ ) #include <iostream> #include <cstdlib> #include <gaim/account.h> #include <gaim/connection.h> using namespace std; int main(int argc, char *argv[]) { GaimAccount *ga; ga = (GaimAccount *)malloc(sizeof(ga)); strcpy(ga->username, "username@domain"); strcpy(ga->password, "password"); // probably if code WOULD complie this wouldn work anyway // but this is not important know.. gaim_account_connect(ga); } g++ -DHAVE_CONFIG_H -I. -I.. -O0 -g3 -I/opt/gaim2/include/ -L/opt/gaim2/lib/gaim/ -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/X11R6/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -L/usr/X11R6/lib -lgtk-x11-2.0 -lgdk-x11-2.0 -lXrandr -lXi -lXinerama -lXext -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangocairo-1.0 -lfontconfig -lXcursor -lpango-1.0 -lcairo -lXrender -lX11 -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0 -I/usr/include/gaim/ -c msn_test.cpp } it says: msn_test.o: In function `main':msn_test:41: undefined reference to `gaim_account_connect' So I tried to link against all files in /opt/gaim2/lib/gaim but no luck... Also if I grep thse .so files against gaim_account_connect (since those libs are stripped I suppose that doesnt quite prove anything though..) So does gaim api and shared libraries include connectiong functions at all? Or is gaim api only for certain gaim plugin development or something ??? ---------------------------------------------------------------------- >Comment By: Luke Schierer (lschiere) Date: 2006-03-22 14:27 Message: Logged In: YES user_id=28833 you'll need to put the gaim stuff in a C namespace to avoid some of the "features" of the c++ compiler. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=200235&aid=1447819&group_id=235 ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Gaim-support mailing list Gaim-support@xxxxxxxxxxxxxxxxxxxxx https://lists.sourceforge.net/lists/listinfo/gaim-support