On Sat, Jul 12, 2008 at 7:21 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;">
Hello, can someone figure out what I'm doing wrong.<br>Here is the output I get when I attempt to compile: -<br>=================================<br>yogesh@linux-sm3q:~/gravity/New> make<br>Scanning dependencies of target GravityCore<br>
[ 91%] Built target GravityCore<br>Scanning dependencies of target Gravity<br>Linking CXX executable Gravity<br>CMakeFiles/Gravity.dir/main.o: In function `main':<br>/home/yogesh/gravity/app/main.cpp:10: undefined reference to `GApplication::GApplication()'<br>
/home/yogesh/gravity/app/main.cpp:12: undefined reference to `Gravity::self()'<br>/home/yogesh/gravity/app/main.cpp:12: undefined reference to `Gravity::gUIInterfaceManager() const'<br>/home/yogesh/gravity/app/main.cpp:13: undefined reference to `GApplication::~GApplication()'<br>
collect2: ld returned 1 exit status<br>make[2]: *** [app/Gravity] Error 1<br>make[1]: *** [app/CMakeFiles/Gravity.dir/all] Error 2<br>make: *** [all] Error 2<br>=================================</blockquote><div><br>I would do a "make VERBOSE=1" and verify that CMake is linking your executable against what you think it should be linking against.<br>
<br>If that was not the problem, I'd have a second look at your library implementations and double check that you're compiling and linking what you think you're compiling and linking. You can use "nm" or some other tool to inspect the generated shared libraries and ensure that the proper symbols are defined (or not defined).<br>
</div></div><br>-- <br>Philip Lowman