I've added an electric-powered attitude indicator class: AttitudeIndicatorElectric. For now this is just a copy of the original AttitudeIndicator class. I've added it to the FGInstrumentMgr constructor and to the makefile.am. Now all the files in src/Instrumentation compiles OK, but when it's time to link in Main I get this error:


Making all in Main
make[2]: Entering directory `/home/royvegar/FlightGear-0.9/source/src/Main'
g++ -DPKGLIBDIR=\"/usr/local/lib/FlightGear\" -pipe -O2 -Wall -DWIN32 -DNOMINMAX
-DHAVE_WINDOWS_H -D_REENTRANT -L/usr/local/lib -L/usr/X11R6/lib -o fgfs.exe b
ootstrap.o ../../src/Main/libMain.a ../../src/Aircraft/libAircraft.a ../../src/A
TC/libATC.a ../../src/Cockpit/libCockpit.a ../../src/Cockpit/built_in/libBuilt_i
n.a ../../src/Controls/libControls.a ../../src/FDM/libFlight.a ../../src/FDM/Bal
loon/libBalloon.a ../../src/FDM/ExternalNet/libExternalNet.a ../../src/FDM/Exter
nalPipe/libExternalPipe.a ../../src/FDM/JSBSim/libJSBSim.a ../../src/FDM/YASim/l
ibYASim.a ../../src/FDM/JSBSim/filtersjb/libfiltersjb.a ../../src/FDM/LaRCsim/li
bLaRCsim.a ../../src/FDM/UIUCModel/libUIUCModel.a ../../src/GUI/libGUI.a ../../s
rc/Autopilot/libAutopilot.a ../../src/Input/libInput.a ../../src/Instrumentation
/libInstrumentation.a ../../src/Model/libModel.a ../../src/AIModel/libAIModel.a
../../src/Network/libNetwork.a ../../src/Navaids/libNavaids.a ../../src/Scenery/
libScenery.a ../../src/Scripting/libScripting.a ../../src/Sound/libSound.a ../..
/src/Airports/libAirports.a ../../src/MultiPlayer/libMultiPlayer.a ../../src/Rep
lay/libReplay.a ../../src/Systems/libSystems.a ../../src/Time/libTime.a ../../sr
c/Environment/libEnvironment.a -lsgclouds3d -lsgroute -lsgsky -lsgsound -lsgephe
m -lsgmaterial -lsgtgdb -lsgmodel -lsgtiming -lsgio -lsgscreen -lsgmath -lsgbuck
et -lsgprops -lsgdebug -lsgmagvar -lsgmisc -lsgnasal -lsgxml -lsgsound -lsgseria
l -lsgstructure -lsgenvironment -lsgthreads -lpthread -lplibpu -lplibfnt -lplib
js -lplibnet -lplibssg -lplibsg -lplibul -lz -lglut32 -lglu32 -lopengl32 -luser
32 -lgdi32 -lplibsl -lplibsm -lwinmm
../../src/Instrumentation/libInstrumentation.a(instrument_mgr.o)(.text+0x290):in
strument_mgr.cxx: undefined reference to `AttitudeIndicatorElectric::AttitudeInd
icatorElectric[in-charge]()'
../../src/Instrumentation/libInstrumentation.a(instrument_mgr.o)(.text+0x1180):i
nstrument_mgr.cxx: undefined reference to `AttitudeIndicatorElectric::AttitudeIn
dicatorElectric[in-charge]()'
collect2: ld returned 1 exit status
make[2]: *** [fgfs.exe] Error 1
make[2]: Leaving directory `/home/royvegar/FlightGear-0.9/source/src/Main'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/royvegar/FlightGear-0.9/source/src'
make: *** [all-recursive] Error 1



What I really don't understand is the [in-charge] thing.



-- Roy Vegard Ovesen

_______________________________________________
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel

Reply via email to