Menu

Problem using Single-Type Variable: Invalid variable type: SINGLE

Andye
2024-08-31
2024-08-31
  • Andye

    Andye - 2024-08-31

    Hi,
    I am a GCBASIC beginner and need to use "Single" Variables for my project.
    I did test the example code but get already an error "Invalid variable type: SINGLE" with these few lines of code:

        #Chip mega328p, 16
    
    
        Dim mySingle as Single
        mySingle= 1.1
    

    Result: Invalid variable type: SINGLE
    So what am I doing wrong?

     

    Last edit: Andye 2024-08-31
  • Anobium

    Anobium - 2024-08-31

    Andye,

    Really sorry. AVR is now yet support in terms of the lowlevel ASM. I need someone to help with the AVR ASM.

    I will update the compiler to issue a better message - "Advanced Variables for AVR not supportted. If you want to help add this capability please contact the GCBASIC developers on the GBCASIC Support Forum. We need a developer to assist with AVR assembly." .

     
  • Andye

    Andye - 2024-08-31

    Thank you for the answer.
    So I have to use integer variables as a workaround.

     
    👍
    1

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.