On Wednesday, 23. July 2008, cullam Bruce-Lockhart wrote:
> ../../src/Main/libMain.a(renderer.o): In Function
> '_ZN6Camera12countCamerasEv':
> /home/RAVEN/FlightGear-1.0.0/src/Main/camera.cpp:32: undefined reference to
> '[EMAIL PROTECTED]'

This is a linker-error, not a compiler-error.

> I presume it's something to do with my unfamiliarity with Cygwin and Linux,
> but my function is actually called Camera::countCameras, and the function
> it can't find is LucamNumCameras. I have no idea where the extra text comes
> from.

That's just how C++ works. It creates unique names for all methods (and 
functions) out of the method signature.

> The essential issue is that many of my Camera functions call some sort of
> LucamBlahBlahBlah function. And the compiler isn't finding any of these
> Lucam functions, even though the .h file where they are defined has been
> included, apparently successfully. Any idea what I'm missing?

You're most probably just not linking against the library where these API 
functions are implemented. Nothing to do with FG or Linux, that's just basic 
C and C++ programming knowledge. Your favourite C++ book and the API 
documentation should help you quickly.

Regards,
Steafn


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to