Go to Post learning from what you made is more valuable that winning with what you made. - Veselin Kolev [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 16-02-2005, 20:34
stephenthe1 stephenthe1 is offline
Registered User
#1008
 
Join Date: Dec 2004
Location: Ohio
Posts: 113
stephenthe1 is on a distinguished road
missing old_port

MPLINK 3.90, Linker
Copyright (c) 2004 Microchip Technology Inc.
Error - could not find definition of symbol 'Old_Port_B' in file 'C:\1008\build\interrupts.o'.
Errors : 1


what's wrong here?
  #2   Spotlight this post!  
Unread 16-02-2005, 22:29
ace123's Avatar
ace123 ace123 is offline
Registered User
AKA: Patrick Horn
FRC #0008 (Paly Robotics - http://robotics.paly.net/)
Team Role: Programmer
 
Join Date: Feb 2005
Rookie Year: 2004
Location: Palo Alto, CA
Posts: 50
ace123 has a spectacular aura aboutace123 has a spectacular aura about
Send a message via AIM to ace123
Re: missing old_port

What you just got is a linker error. Linker errors generally talk about variables or functions that are not found anywhere and are often cryptic. Usually your best way to solve them is to use the "Find in project files..." option and search for the variable or function in question and find out how they are used.

Usually they result from typos or missing files. If you see a warning like "Implicit definition of function" then that means that you do not have a "header" file with the fuction delcared in it. This often results in such linker errors.

In this case, just declare an int variable called "Old_Port_B" at the top of interrupts.c so that the linker will find it.
Code:
int Old_Port_B;
Just make sure that you declare it outside of a function because the linker does not look in local variables.
__________________
-Patrick Horn, Paly Robotics

Check out the space simulator called Vega Strike, modelled after the space simulator games Elite and Wing Commander. It's Open Source too!
If you have ever played Wing Commander, or especially Privateer, and had a feeling of nostalga derived from the you will enjoy these two Vega Strike mods: Privateer Gemini Gold and Privateer Remake!
I'm working on adding multiplayer support this year...
  #3   Spotlight this post!  
Unread 17-02-2005, 10:09
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: missing old_port

Quote:
Originally Posted by stephenthe1
MPLINK 3.90, Linker
Copyright (c) 2004 Microchip Technology Inc.
Error - could not find definition of symbol 'Old_Port_B' in file 'C:\1008\build\interrupts.o'.
Errors : 1


what's wrong here?
Search your project for references to that symbol. Here's the clue in the interrupts.c file:
Code:
	Old_Port_B = PORTB;			// initialize the Old_Port_B variable (in user_routines_fast.c)
Immediately after all the #includes in user_routines.fast.c, you should have this:
Code:
unsigned char Old_Port_B = 0xFF;// state of port b the last time
				// this function was called
It's there in the downloaded frc_interrupts example. You probably copied what you thought was important from it into your own files, and missed this one.
Closed Thread


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
Who's missing parts? sanddrag Kit & Additional Hardware 37 12-01-2005 12:13
Transmission missing pieces?? Brandon Holley Technical Discussion 2 10-01-2005 17:13
Who is missing stuff from KOP? Matthew_H Kit & Additional Hardware 52 05-02-2004 19:52
Receiving missing parts from KOP shyra1353 Kit & Additional Hardware 7 30-01-2004 00:58
Anyone missing as many parts as we are? Drew Hopman Technical Discussion 4 19-01-2004 19:06


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

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