Go to Post The Lord of the Bots.... - Bob Steele [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Unread 26-01-2010, 00:04
mikets's Avatar
mikets mikets is offline
Software Engineer
FRC #0492 (Titan Robotics)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2008
Location: Bellevue, WA
Posts: 667
mikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of light
Help interpreting load time error

I have started to customize the robot template for our team. I have sub-classed the SimpleRobot class to add some of our custom functions. Everything compiled and the code was downloaded into the cRIO fine. But when I rebooted the robot, at the end of the boot, it gave me the following output and I have no idea why TrcRobot is undefined. TrcRobot is my subclass of SimpleRobot. Simplified code construct is shown below. I am expecting to see compiler errors if I made mistakes. But the compiler didn't complain and instead I got load time error of undefined symbol. Can somebody tell me what it means? Thanks.
Code:
FRC_NetworkCommunication was compiled from SVN revision 2064
FPGA Hardware GUID: 0xAD9A5591CC64E4DF756D77D1B57A549E
FPGA Software GUID: 0xAD9A5591CC64E4DF756D77D1B57A549E
FPGA Hardware Version: 2010
FPGA Software Version: 2010
FPGA Hardware Revision: 1.3.0
FPGA Software Revision: 1.3.0
* Loading StartupDlls: FRC_UserProgram
Warning: module 0x134c5d0 (FRC_UserProgram.out) holds reference to undefined symbol _ZTV8TrcRobot.
Warning: module 0x134c5d0 (FRC_UserProgram.out) holds reference to undefined symbol _ZTI8TrcRobot.
(unloading partially loaded module FRC_UserProgram.out)
...FRC_UserProgram failed to load.
Code:
class TrcRobot: public SimpleRobot
{
public:
    virtual void SomeCustomizedMethods();
    void Autonomous()
    {
        //Autonomous main loop.
        SomeCustomizedMethods();
    }
    void OperatorControl()
    {
        //Operator control main loop.
        SomeCustomizedMethods();
    }
};

class MyRobot: public TrcRobot
{
    MyRobot()
    {
        //Instantiate other objects.
    }
    ~MyRobot()
    {
        //Destroy objects created in constructor.
    }
    void SomeCustomizedMethods()
    {
        //Autonomous or Operator Control tasks.
    }
}
START_ROBOT_CLASS(MyRobot);
Reply With Quote
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Resolve load conflict error ? ferc Programming 1 15-01-2010 21:16
Help getting C++ program to load tgwicklund C/C++ 4 02-02-2009 23:24
**FIRST EMAIL**/Important Pit Load In and Load Out Information Mark McLeod FIRST E-Mail Blast Archive 7 11-04-2008 08:16
HELP!!!!! Taigene motor load DPTeam270Driver Motors 40 12-02-2008 10:53
180:Error: syntax error help! seanl Programming 8 04-02-2007 11:31


All times are GMT -5. The time now is 12:13.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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