Error for rotozoomSurface

Home Forums Forums Technical Support for BerryIMU Error for rotozoomSurface

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #4648
    chrfriese
    Participant

    Hi all,

    I’m following the tutorial for the digital compass. So far no significant issues. Unfortunately I cannot complete the forth section. The compiler writes a warning:

    warning: assignment makes pointer from integer without a cast
    rotation = rotozoomSurface(compatibleCompassNeedle,heading+90,1,0);
             ^

    As I’m rather new to c programming, I slightly understand what this means but have no clue how to fix it. Any hint would be very helpful.

    #4649
    chrfriese
    Participant

    Sorry, solution found. I was too fast with asking.

    As soon as I added
    #include <SDL/SDL_rotozoom.h
    the compiler completed successfully.

    #4651
    Mark Williams
    Keymaster

    A few warnings will come show when compiling… but it should still work.
    Does it work for you?

    Mark --OzzMaker.com --

    #4652
    Mark Williams
    Keymaster

    oh…. I just saw your second post.
    Ill double check the code to make sure that include is there.

    Mark --OzzMaker.com --

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.

Blip, blop, bloop…