On Sat, Jul 12, 2008 at 10:43 AM, Yogesh Marwaha <<a href="mailto:yogeshm.007@gmail.com">yogeshm.007@gmail.com</a>> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Here is a part from outpur of make VERBOSE=1<br>
<br>
---------------------------<br>
Linking CXX executable Gravity<br>
cd /home/yogesh/gravity/New/app && /usr/bin/cmake -E cmake_link_script<br>
CMakeFiles/Gravity.dir/link.txt --verbose=1<br>
/usr/bin/c++ -Wnon-virtual-dtor -Wno-long-long -ansi -Wundef<br>
-Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith<br>
-Wformat-security -fno-exceptions -fno-check-new -fno-common<br>
-Woverloaded-virtual -fno-threadsafe-statics -fvisibility=hidden<br>
-fvisibility-inlines-hidden -g -O2 -fno-reorder-blocks<br>
-fno-schedule-insns -fno-inline -fPIC -Wl,--enable-new-dtags<br>
CMakeFiles/Gravity.dir/main.o -o Gravity -rdynamic<br>
-L/home/yogesh/gravity/New/library -L/home/yogesh/gravity/New/lib<br>
../lib/libGravityCore.so -ltag -lphonon -lsolid -lkdecore -lkdeui<br>
-lkdeui -lQtSvg -lSM -lICE -lX11 -lXext -lXft -lXau -lXdmcp -lXpm<br>
-lstreamanalyzer -lstreams -lsolid -lQtGui -lkdecore -lQtCore<br>
-lpthread -lQtNetwork -lQtDBus -lQtXml-lz -lbz2 -lresolv -lXtst<br>
-lXcursor -lXfixes -lfam -lXrender -lkio -lsqlite3<br>
-Wl,-rpath,/usr/local/lib<br>
<div class="Ih2E3d">CMakeFiles/Gravity.dir/main.o: In function `main':<br>
</div>--------------------------<br>
<br>
libGravityCore is being included, so this seems not the problem.<br>
<br>
I'm unable (atm) to grasp output of 'nm libGravityCore.so'; so am<br>
attching its output for you to see (in a separate mail, awaiting<br>
moderator's approval).<br></blockquote><div><br>No need to post the contents of the entire thing, just grep for the symbols you care about:<br><br>nm --demangle libGravityCore.so | grep "Gravity::self"<br>nm --demangle libGravityCore.so | grep "GApplication::GApplication"<br>
<br>If you see a big "U" on the second column (undefined) you're referencing the method but not defining it. This is usually due to having the method defined in a header file but no implementation provided.<br>
<br>If you don't see any matching symbol for the method, the method is not defined in libGravityCore.so and you will need to link your executable against additional libraries to resolve the symbol.<br><br>Hope that helps<br>
</div></div><br>-- <br>Philip Lowman