Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   C/C++ (http://www.chiefdelphi.com/forums/forumdisplay.php?f=183)
-   -   Warning: module holds reference to undefined symbol (http://www.chiefdelphi.com/forums/showthread.php?t=103058)

kylelanman 10-02-2013 15:29

Re: Warning: module holds reference to undefined symbol
 
One problem we faced a couple times this year was not providing an implementation of pure virtual functions in our subsystems and commands.

The two that come to mind are if your using a PIDSubsystem you have to implement.

virtual double ReturnPIDInput();
virtual void UsePIDOutput(double output);

In normal commands we implemented each command in it's own .h file.

We found our selves constantly leaving out implementations of empty methods.

ex.

~ArmUpCommand();
instead of
~ArmUpCommand() {}

and

Execute();
instead of
Execute() {}

The best way to narrow it down it down that we found is to comment all the subsystems and uncomment them one at a time until you can narrow it down to a particular subsystem or command.

If you'er still stumped then you can post that command or subsystem and the CD community can hopefully help you out.


All times are GMT -5. The time now is 14:32.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi