Hi all,

I am trying to add authentication to gitmodel for my project.

I am getting the following errors:
../hangman/CMakeFiles/hangman.wt.dir/Session.o: In function 
`Session::Session()':
/home/s/Downloads/wt-3.2.3/examples/hangman/Session.C:101: undefined reference 
to `void Wt::Dbo::Session::mapClass<User>(char const*)'
../hangman/CMakeFiles/hangman.wt.dir/Session.o: In function 
`Wt::Auth::Dbo::AuthInfo<User>::user() const':
/home/s/Downloads/wt-3.2.3/src/Wt/Auth/Dbo/AuthInfo:94: undefined reference to 
`Wt::Dbo::ptr<User>::ptr(Wt::Dbo::ptr<User> const&)'
../hangman/CMakeFiles/hangman.wt.dir/Session.o: In function `Session::user() 
const':
/home/s/Downloads/wt-3.2.3/examples/hangman/Session.C:138: undefined reference 
to `Wt::Dbo::ptr<User>::operator bool() const'
/home/s/Downloads/wt-3.2.3/examples/hangman/Session.C:139: undefined reference 
to `User::User()'
/home/s/Downloads/wt-3.2.3/examples/hangman/Session.C:139: undefined reference 
to `Wt::Dbo::ptr<User> Wt::Dbo::Session::add<User>(User*)'
/home/s/Downloads/wt-3.2.3/examples/hangman/Session.C:139: undefined reference 
to `Wt::Dbo::ptr<User>::operator=(Wt::Dbo::ptr<User> const&)'
Full error list: http://pastie.org/5469803
I tried using the cmake generated makefile. After tracing down, it turns out 
that this linker error is after running link.txt under the CMakeFiles directory.
I tried to combine the link.txt for gitmodel example and hangman example 
because hangman does authentication too.
Here is my link.txt: 
/usr/bin/c++   -O2 -g ../hangman/CMakeFiles/hangman.wt.dir/Session.o  
CMakeFiles/gitview.wt.dir/Git.o CMakeFiles/gitview.wt.dir/GitModel.o 
CMakeFiles/gitview.wt.dir/__/wt-homepage/SourceView.o 
CMakeFiles/gitview.wt.dir/GitView.o  -o gitview.wt -rdynamic 
-L/home/s/Downloads/wt-3.2.3/build/src/http 
-L/home/s/Downloads/wt-3.2.3/build/src 
-L/home/s/Downloads/wt-3.2.3/build/src/Wt/Dbo 
-L/home/s/Downloads/wt-3.2.3/build/src/Wt/Dbo/backend -lcrypt -L/usr/local/lib 
../../src/http/libwthttp.so.3.2.3 ../../src/libwt.so.3.2.3 
../../src/Wt/Dbo/libwtdbo.so.3.2.3 
../../src/Wt/Dbo/backend/libwtdbosqlite3.so.3.2.3  
/usr/local/lib/libboost_filesystem.so /usr/local/lib/libboost_random.so 
/usr/local/lib/libboost_regex.so /usr/local/lib/libboost_signals.so 
/usr/local/lib/libboost_system.so /usr/local/lib/libboost_filesystem.so -lz 
-lssl -lcrypto ../../src/Wt/Dbo/libwtdbo.so.3.2.3 
/usr/local/lib/libboost_thread.so /usr/local/lib/libboost_program_options.so 
/usr/local/lib/libboost_date_time.so -lpthread -ldl 
-Wl,-rpath,/home/s/Downloads/wt-3.2.3/build/src/http:/home/s/Downloads/wt-3.2.3/build/src:/home/s/Downloads/wt-3.2.3/build/src/Wt/Dbo:/home/s/Downloads/wt-3.2.3/build/src/Wt/Dbo/backend:/usr/local/lib
Pastie link: http://pastie.org/5469815

Has anyone faced this error before?

Thanks,
Suren.


------------------------------------------------------------------------------
Keep yourself connected to Go Parallel: 
BUILD Helping you discover the best ways to construct your parallel projects.
http://goparallel.sourceforge.net
_______________________________________________
witty-interest mailing list
witty-interest@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to