Pumpkin, Inc.

Pumpkin User Forums

Numerous link errors... what does it mean?

For issues specific to the 8051 family, including compilers (e.g. Keil C51) and IDEs (e.g. uVision2).

Numerous link errors... what does it mean?

Postby JBevis » Thu Jun 27, 2002 2:13 am

I've just switched from the freeware library sfc51lxea to the 'l' library slc51lxea. I'm getting a ton of link errors, and I haven't a clue why yet. This is being compiled with Keil C51. What am I likely to be doing wrong?

-----------------------

*** ERROR L102: EXTERNAL ATTRIBUTE MISMATCH
SYMBOL: OSSIGQINP
MODULE: .salvoslc51lxea.lib (INIT)
*** ERROR L102: EXTERNAL ATTRIBUTE MISMATCH
SYMBOL: OSSIGQOUTP
MODULE: .salvoslc51lxea.lib (INIT)
*** ERROR L102: EXTERNAL ATTRIBUTE MISMATCH
SYMBOL: OSELIGQP
MODULE: .salvoslc51lxea.lib (INIT)
*** ERROR L102: EXTERNAL ATTRIBUTE MISMATCH
SYMBOL: OSCTCBP
MODULE: .salvoslc51lxea.lib (INIT)
*** ERROR L102: EXTERNAL ATTRIBUTE MISMATCH
SYMBOL: OSECBAREA
MODULE: .salvoslc51lxea.lib (RPT)
*** ERROR L102: EXTERNAL ATTRIBUTE MISMATCH
SYMBOL: OSTCBAREA
MODULE: .salvoslc51lxea.lib (RPT)
*** WARNING L7: MODULE NAME NOT UNIQUE
MODULE: .salvoslc51lxea.lib (MEM)
*** WARNING L7: MODULE NAME NOT UNIQUE
MODULE: .salvoslc51lxea.lib (MEM)
*** ERROR L118: REFERENCE MADE TO ERRONEOUS EXTERNAL
SYMBOL: OSTCBAREA
MODULE: app_main.obj (APP_MAIN)
ADDRESS: 8581H
*** ERROR L118: REFERENCE MADE TO ERRONEOUS EXTERNAL
SYMBOL: OSTCBAREA
MODULE: app_main.obj (APP_MAIN)
ADDRESS: 858CH
*** WARNING L1: UNRESOLVED EXTERNAL SYMBOL
SYMBOL: OSTIMERTICKS
MODULE: .salvoslc51lxea.lib (INIT)
*** ERROR L118: REFERENCE MADE TO ERRONEOUS EXTERNAL
SYMBOL: OSELIGQP
MODULE: .salvoslc51lxea.lib (INIT)
ADDRESS: 84C7H
*** ERROR L118: REFERENCE MADE TO ERRONEOUS EXTERNAL
SYMBOL: OSCTCBP
MODULE: .salvoslc51lxea.lib (INIT)
ADDRESS: 84CDH
*** WARNING L2: REFERENCE MADE TO UNRESOLVED EXTERNAL
SYMBOL: OSTIMERTICKS
MODULE: .salvoslc51lxea.lib (INIT)
ADDRESS: 84D3H
*** ERROR L118: REFERENCE MADE TO ERRONEOUS EXTERNAL
SYMBOL: OSSIGQINP
MODULE: .salvoslc51lxea.lib (INIT)
ADDRESS: 84DEH
*** ERROR L118: REFERENCE MADE TO ERRONEOUS EXTERNAL
SYMBOL: OSSIGQOUTP
MODULE: .salvoslc51lxea.lib (INIT)
ADDRESS: 84E4H
*** ERROR L118: REFERENCE MADE TO ERRONEOUS EXTERNAL
SYMBOL: OSELIGQP
MODULE: .salvoslc51lxea.lib (INITTASK)
ADDRESS: 6832H
*** ERROR L118: REFERENCE MADE TO ERRONEOUS EXTERNAL
SYMBOL: OSELIGQP
MODULE: .salvoslc51lxea.lib (INITTASK)
ADDRESS: 6834H
*** WARNING L1: UNRESOLVED EXTERNAL SYMBOL
SYMBOL: OSTIMERTICKS
MODULE: .salvoslc51lxea.lib (RPT)
*** ERROR L118: REFERENCE MADE TO ERRONEOUS EXTERNAL
SYMBOL: OSTCBAREA
MODULE: .salvoslc51lxea.lib (RPT)
ADDRESS: 6971H
*** ERROR L118: REFERENCE MADE TO ERRONEOUS EXTERNAL
SYMBOL: OSECBAREA
MODULE: .salvoslc51lxea.lib (RPT)
ADDRESS: 6B3CH
*** WARNING L2: REFERENCE MADE TO UNRESOLVED EXTERNAL
SYMBOL: OSTIMERTICKS
MODULE: .salvoslc51lxea.lib (RPT)
ADDRESS: 4270H
*** ERROR L118: REFERENCE MADE TO ERRONEOUS EXTERNAL
SYMBOL: OSELIGQP
MODULE: .salvoslc51lxea.lib (RPT)
ADDRESS: 4288H
*** ERROR L118: REFERENCE MADE TO ERRONEOUS EXTERNAL
SYMBOL: OSTCBAREA
MODULE: .salvoslc51lxea.lib (RPT)
ADDRESS: 42A4H
*** ERROR L118: REFERENCE MADE TO ERRONEOUS EXTERNAL
SYMBOL: OSTCBAREA
MODULE: .salvoslc51lxea.lib (RPT)
ADDRESS: 42A7H
*** ERROR L118: REFERENCE MADE TO ERRONEOUS EXTERNAL
SYMBOL: OSTCBAREA
MODULE: .salvoslc51lxea.lib (RPT)
ADDRESS: 4305H
*** ERROR L118: REFERENCE MADE TO ERRONEOUS EXTERNAL
SYMBOL: OSTCBAREA
MODULE: .salvoslc51lxea.lib (RPT)
ADDRESS: 432AH
*** ERROR L118: REFERENCE MADE TO ERRONEOUS EXTERNAL
SYMBOL: OSECBAREA
MODULE: .salvoslc51lxea.lib (RPT)
ADDRESS: 4364H
*** ERROR L118: REFERENCE MADE TO ERRONEOUS EXTERNAL
SYMBOL: OSSIGQOUTP
MODULE: .salvoslc51lxea.lib (SCHED)
ADDRESS: 4BE1H
*** ERROR L118: REFERENCE MADE TO ERRONEOUS EXTERNAL
SYMBOL: OSCTCBP
MODULE: .salvoslc51lxea.lib (SCHED)
ADDRESS: 4BECH
*** ERROR L118: REFERENCE MADE TO ERRONEOUS EXTERNAL
SYMBOL: OSCTCBP
MODULE: .salvoslc51lxea.lib (SCHED)
ADDRESS: 4BF4H
*** ERROR L118: REFERENCE MADE TO ERRONEOUS EXTERNAL
SYMBOL: OSSIGQOUTP
MODULE: .salvoslc51lxea.lib (SCHED)
ADDRESS: 4C07H
*** ERROR L118: REFERENCE MADE TO ERRONEOUS EXTERNAL
SYMBOL: OSCTCBP
MODULE: .salvoslc51lxea.lib (SCHED)
ADDRESS: 4C24H
*** ERROR L118: REFERENCE MADE TO ERRONEOUS EXTERNAL
SYMBOL: OSELIGQP
MODULE: .salvoslc51lxea.lib (SCHED)
ADDRESS: 4C2CH
*** ERROR L118: REFERENCE MADE TO ERRONEOUS EXTERNAL
SYMBOL: OSELIGQP
MODULE: .salvoslc51lxea.lib (SCHED)
ADDRESS: 4C2EH
*** ERROR L118: REFERENCE MADE TO ERRONEOUS EXTERNAL
SYMBOL: OSSIGQOUTP
MODULE: .salvoslc51lxea.lib (SCHED)
ADDRESS: 4C33H
*** ERROR L118: REFERENCE MADE TO ERRONEOUS EXTERNAL
SYMBOL: OSSIGQINP
MODULE: .salvoslc51lxea.lib (SCHED)
ADDRESS: 4C3DH
*** ERROR L118: REFERENCE MADE TO ERRONEOUS EXTERNAL
SYMBOL: OSELIGQP
MODULE: .salvoslc51lxea.lib (SCHED)
ADDRESS: 4C58H
*** ERROR L118: REFERENCE MADE TO ERRONEOUS EXTERNAL
SYMBOL: OSCTCBP
MODULE: .salvoslc51lxea.lib (SCHED)
ADDRESS: 4C60H
*** ERROR L118: REFERENCE MADE TO ERRONEOUS EXTERNAL
SYMBOL: OSELIGQP
MODULE: .salvoslc51lxea.lib (SCHED)
ADDRESS: 4C77H
*** ERROR L118: REFERENCE MADE TO ERRONEOUS EXTERNAL
SYMBOL: OSCTCBP
MODULE: .salvoslc51lxea.lib (SCHED)
ADDRESS: 4C88H
*** ERROR L118: REFERENCE MADE TO ERRONEOUS EXTERNAL
SYMBOL: OSCTCBP
MODULE: .salvoslc51lxea.lib (SCHED)
ADDRESS: 4CA8H
*** ERROR L118: REFERENCE MADE TO ERRONEOUS EXTERNAL
SYMBOL: OSELIGQP
MODULE: .salvoslc51lxea.lib (SCHED)
ADDRESS: 4CBCH
*** ERROR L118: REFERENCE MADE TO ERRONEOUS EXTERNAL
SYMBOL: OSELIGQP
MODULE: .salvoslc51lxea.lib (SCHED)
ADDRESS: 4CBEH
*** ERROR L118: REFERENCE MADE TO ERRONEOUS EXTERNAL
SYMBOL: OSCTCBP
MODULE: .salvoslc51lxea.lib (PORT8051)
ADDRESS: 7A38H
*** ERROR L118: REFERENCE MADE TO ERRONEOUS EXTERNAL
SYMBOL: OSCTCBP
MODULE: .salvoslc51lxea.lib (PORT8051)
ADDRESS: 7A3FH
*** ERROR L118: REFERENCE MADE TO ERRONEOUS EXTERNAL
SYMBOL: OSCTCBP
MODULE: .salvoslc51lxea.lib (TASK4)
ADDRESS: 86F0H

------------------
Jeff Bevis
jbevis@graviton.com

Jeff Bevis
jbevis@graviton.com
JBevis
 
Posts: 16
Joined: Mon Jun 24, 2002 11:00 pm
Location: La Jolla, CA, USA

Re: Numerous link errors... what does it mean?

Postby aek » Thu Jun 27, 2002 5:17 am

Hi Jeff.

When switching to the standard 'l' library, you need to make sure that OSLIBRARY_TYPE is set to OSL in your salvocfg.h. If it worked previously with the freeware 'f' library, that should be the only change necessary.

Regards,

------------------

-------
aek
aek
 
Posts: 1887
Joined: Sat Aug 26, 2000 11:00 pm

Re: Numerous link errors... what does it mean?

Postby JBevis » Fri Jun 28, 2002 9:59 am

Bingo. That was exactly the problem. I looked at salvocfg.h over and over but never caught that. Thanks!

------------------
Jeff Bevis
jbevis@graviton.com

Jeff Bevis
jbevis@graviton.com
JBevis
 
Posts: 16
Joined: Mon Jun 24, 2002 11:00 pm
Location: La Jolla, CA, USA

Re: Numerous link errors... what does it mean?

Postby dwhatever » Tue Nov 04, 2003 5:43 am

I had the same problem as Jeff, but I am just getting started with SalvoLite and using the free library. I can't seem to get it to link correctly. Indeed, OSLIBRARY_TYPE is set to OSF. I am also using the Keil compiler, but perhaps I just can't figure out where to set the pointer to the libraries in C:salvolib. I tried builded your example from C:salvo ut u1. I included the output from the compiler below.

Build target 'Target 1'
assembling STARTUP.A51...
compiling main.c...
compiling isr.c...
linking...
*** WARNING L1: UNRESOLVED EXTERNAL SYMBOL
SYMBOL: OSSCHED
MODULE: .obj_filesmain.obj (MAIN)
*** WARNING L1: UNRESOLVED EXTERNAL SYMBOL
SYMBOL: OSINIT
MODULE: .obj_filesmain.obj (MAIN)
*** WARNING L2: REFERENCE MADE TO UNRESOLVED EXTERNAL
SYMBOL: OSINIT
MODULE: .obj_filesmain.obj (MAIN)
ADDRESS: 080CH
*** WARNING L2: REFERENCE MADE TO UNRESOLVED EXTERNAL
SYMBOL: OSSCHED
MODULE: .obj_filesmain.obj (MAIN)
ADDRESS: 080EH
Program Size: data=9.0 xdata=0 code=21
creating hex file from ".obj_filesmain"...
".obj_filesmain" - 0 Error(s), 4 Warning(s).

--------------------------------------------

quote:
Originally posted by aek:
Hi Jeff.

When switching to the standard 'l' library, you need to make sure that OSLIBRARY_TYPE is set to OSL in your salvocfg.h. If it worked previously with the freeware 'f' library, that should be the only change necessary.

Regards,


dwhatever
 
Posts: 2
Joined: Tue Nov 04, 2003 12:00 am

Re: Numerous link errors... what does it mean?

Postby dwhatever » Fri Nov 07, 2003 12:31 pm

Nevermind. I just read that Keil's demo version does not allow you to link in libraries. Not so good for testing Salvo if you don't want to purchase a compiler until you've tested it first.
dwhatever
 
Posts: 2
Joined: Tue Nov 04, 2003 12:00 am


Return to 8051 family

Who is online

Users browsing this forum: No registered users and 1 guest

cron