On Monday 27 November 2006 04:08, Jure Repinc wrote: > Hi, > > In the last couple of days I had some time to set up the development > environment and prepare to start working on KDE4 client for TP. I simply > call it Parsek for now (it includes K to hint it is a KDE app, it > doesn't start with K which is also nicer, in Slovenian language parsek > means parsec, name still has connection to Thousand Parsec).
Really cool! > Since KDE4 has replaced autotools system with CMake buld system > (www.cmake.org) I also decided to use this. If the client will ever try > to get included into KDE-Games package it has to use the same build > system as the rest of KDE. I've already made a module for CMake which > finds libtpproto on system and I have submitted it to CMake for > inclusion in some future version of CMake. libtpproto-cpp has a pkg-config file, so that shouldn't (have) be(en) too hard. > So far I have only created a main window for the game. It is still blank > and so far it only has a menu and status bar. In the Game menu I have > Connect To Server entry and it opens a dialog to gather server, username > and password. I used TPProto::GameLayer::connect() and login() functions > and so far all compiled just fine. Cool. I have a few ideas about the connect to server dialog box. > But the problem happens when the ld linker tries to link to > libtpproto.so. I get these "undefined reference" errors: > > /usr/local/lib/libtpproto.so: undefined reference to > `TPProto::AccountCreate::setPass(std::basic_string<char, > std::char_traits<char>, std::allocator<char> > const&)' > /usr/local/lib/libtpproto.so: undefined reference to > `TPProto::AccountCreate::setUser(std::basic_string<char, > std::char_traits<char>, std::allocator<char> > const&)' > /usr/local/lib/libtpproto.so: undefined reference to > `TPProto::AccountCreate::AccountCreate()' > /usr/local/lib/libtpproto.so: undefined reference to > `TPProto::AccountCreate::setComment(std::basic_string<char, > std::char_traits<char>, std::allocator<char> > const&)' > /usr/local/lib/libtpproto.so: undefined reference to > `TPProto::AccountCreate::setEmail(std::basic_string<char, > std::char_traits<char>, std::allocator<char> > const&)' > collect2: ld returned 1 exit status > make[2]: *** [parsek] Error 1 > make[1]: *** [CMakeFiles/parsek.dir/all] Error 2 > make: *** [all] Error 2 > > What could be wrong? I didn't use anything from TPProto::AccountCreate > in my code. Did something go wrong when I compiled libtpproto-cpp? I > don't have experience with errors like this so any help would be > welcome. And sorry if this is a silly question. TPProto::AccountCreate is used by TPProto::GameLayer::createAccount(). I can't see why they are not defined. I've just done "make check" on libtpproto-cpp and it errors in the same way. I'll have a look into it shortly. Later Lee
pgpYtQ0YvrydO.pgp
Description: PGP signature
_______________________________________________ tp-devel mailing list [email protected] http://www.thousandparsec.net/tp/mailman.php/listinfo/tp-devel
