Shop OBEX P1 Docs P2 Docs Learn Events
BST ocmpile error references a blank line! — Parallax Forums

BST ocmpile error references a blank line!

HShankoHShanko Posts: 402
edited 2012-06-30 17:09 in Propeller 1
I tried to attach a screen dump, but for some reason it wouldn't work. Is a TIFF format (on Mac)

I get an 'tv_text (42,8) Error - Unable to locate object' on compile. But, there is no code on or around referenced lines!

Anyone understand what's happening here?

Comments

  • Mike GreenMike Green Posts: 23,101
    edited 2012-06-26 20:42
    Can't tell without the source program. Sometimes a compiler only notices an error at the end of a line when it looks at the next line of the program. If you're using tv_text, that refers to the tv.spin object which should be included with tv_text.spin in the Propeller Tool library directory.

    Line 42-44 of tv_text is:
    OBJ
    
      tv : "tv"
    
    If tv.spin were missing, it might be reported with a line number of 42.
  • HShankoHShanko Posts: 402
    edited 2012-06-27 12:44
    @ Mike

    Sorry about not incuding any source. Spent about an hour trying to get a part of the screen capture, but wouldn't attach for some reason.

    Here's about the first 50 lines of Spin. I have 'tv_text.spin' in the same folder as this source. I'd think it should be easy to figure out but whatever I think up to try, I get about the same error result!


    {{-----------------------------+
    '|  MidiIn_B3_hasd.spin        |  v 0.1 : 8:05 am, 7 Jun.2012
    '|  (C) 2012 h.a.s. designn    |  PropTool  v:1.3
    '+------------------------------------------------------------------------------------------+
    '|  The Prop decodes MIDI_In signalling and displays results on TV monitor                  |
    '|  COMidi PASMS code from H. Bollig, of Germany                                            |
    '+---email lc/37cc594a----------------------------------------------------------------------+}}
    CON
      _clkmode      = xtal1 + pll16x
      _xinfreq      = 5_000_000
      clockfreq = ((_CLKMODE - XTAL1) >> 6) * _XINFREQ
      _1mS  = clockfreq / 1_000 'Divisor for  1 mS
    'TV parameters
      #0, white, inverse, highlight, blue, magenta, green, orange, red ' text palette colors
    
    
    VAR
      long stack[100], DTarray[6], c, rxcheck
      long addrReg, dataReg, dirReg, CmdStatus
    '  long keyReg, LpTimer, SBPtReg, DisplayReg, Mig
      byte id  ', Lptest, key,
    
    
    OBJ
      tv     : "tv_text"            ' debug/use w/TV/CD-DVD player as monitor (13 lines x 40 char.)
    
    
    PUB Main                        ' Cog 0
      tv.start(12)                  ' Cog 1; uses ping A12..14 for video out
      id := cognew(@C0Midi,@DTarray[0])  ' cog 2
    
    
      InitProp1
      repeat  ' Main Loop    ******** deals with inputs from D/K, Prop#2, Pod + Looptest ********
        MidiRegs                     display register values
    '+-------------------------------------------------------------------------------------+
    PUB InitProp1                      ' Initialize Prop#1, 5 MHz output, display and comm
      tv.setcolors(@tv_palette)
      color(magenta)                ' use magenta text for Prop1 register heading
      gotoxy(2,0)
      tv.str(@title)                ' display Prop#1 heading
    
    
    
    
                                                          '  THIS IS ABOUT LINE 42
    
    
    
    
    
    
      tv.hex(id,1)                ' show Prop#2 cog usage
      color(white)                  ' use white text for ALL register name and values
    
  • TrapperBobTrapperBob Posts: 142
    edited 2012-06-27 13:26
    Can't tell a lot without all files but do you have tv.spin in that directory also?
  • HShankoHShanko Posts: 402
    edited 2012-06-27 14:15
    @ Trapper Bob,

    Should there be a tv.spin also included?
  • Mike GreenMike Green Posts: 23,101
    edited 2012-06-27 14:17
    You do need tv.spin in addition to tv_text.spin. Look at tv_text.spin
  • evanhevanh Posts: 16,109
    edited 2012-06-28 06:08
    Use a hex editor and have a look for any missing Line-Feed characters. Most non-Mac compilers will ignore the Carriage Return and only act on the LF as an end-of-line marker. I'm gonna guess you've used a Mac editor at some stage and it's only inserted Carriage Returns as the end-of-line character.
  • HShankoHShanko Posts: 402
    edited 2012-06-28 11:08
    @ Mike Green,

    Thank you for the info. I keep forgetting to looking into objects to see what other objects might be required. BST unfortunately doesn't provide a list as does the Prop Tool of required files and objects. My bad, again.
  • evanhevanh Posts: 16,109
    edited 2012-06-28 17:42
    All resolved then?
  • HShankoHShanko Posts: 402
    edited 2012-06-29 16:05
    @ evanh,

    I've been having problems with I use Windows via Parallels on the iMac. Everything slows way down and takes minutes to honor a keystroke or selection. I'm trying to move a file, tv.spin, from my Windows side, hoping to drag/drop that file onto the iMac desktop. I get about that far and the 'wagon wheel' cursor just spins for minutes. Almost get the file today. Will have to go back this weekend and try to get it into BST. MOLASSES!

    That probably will resolve my problem with the compile error. Just no way to find out right at the moment. Sorry. Stay tuned.
  • HShankoHShanko Posts: 402
    edited 2012-06-30 13:54
    Does anyone have 'tv.spin'? I have it on the Windows/Parallels side of my iMac, but cannot select/drag/drop from Windows to iMac desktop. So I am soliciting for a copy of it.

    Spent several hours over the past three days and just cannot make much progress when the 'wagon-wheel' cursor spins for minutes before a next operation can occur. That hardly occurs in iMac use, but does way too much in Windows.

    All that I could accomplish when trying to drag/drop to iMac desktop would be to make a 'shortcut' copy of tv.spin. Must be something else one has to select to not get that to happen. I must have trashed at least 1/2 dozen copies of tv.spin shortcut. Aggravating. Don't recall when this Molasses stuff began. Because I could use Prop Tool with hardly any delays originally, years back. Don't know if the fault is in Windows XP, Parallels, or iMac operations.
  • Mike GreenMike Green Posts: 23,101
    edited 2012-06-30 14:32
    It's in the ObEx here under the name "TV".
  • HShankoHShanko Posts: 402
    edited 2012-06-30 17:09
    @ Mike Green,

    Thank you for pointing that out. When I did either 'tv' or 'tv.spin' the OBEX doesn't show it. Not a very good search engine. Or, is there something else one needs to know to access such a simple file name?

    It compiles properly now. My code may not work; I'll find that out tomorrow But assume there will be something to view on a CD player screen.
Sign In or Register to comment.