Error: 'X' was not declared in this scope

So Im using the arduino mega 2560, with a LCD shield http://www.nuelectronics.com/estore/index.php?main_page=product_info&cPath=1&products_id=31

And after clearing up some errors, there is one error Im not able to resolve.

I found out that I had to add mcc.h to my sketch, because otherwise I would get errors saying that the functions of the bitmap had no resources.
Now after adding mcc.h to my sketch, Im getting these errors... Could someone help me out with this?
I have already declared that Im using an arduino mega 2560, so all of these definitions should be declared already..

C:\Users\Melkon\Documents\Arduino\libraries\mmc/mmc.h: In function 'void init_spi()':
C:\Users\Melkon\Documents\Arduino\libraries\mmc/mmc.h:21: error: 'PORTL' was not declared in this scope
C:\Users\Melkon\Documents\Arduino\libraries\mmc/mmc.h:21: error: 'PORTL0' was not declared in this scope
C:\Users\Melkon\Documents\Arduino\libraries\mmc/mmc.h:22: error: 'PORTB' was not declared in this scope
C:\Users\Melkon\Documents\Arduino\libraries\mmc/mmc.h:22: error: 'PORTB2' was not declared in this scope

Just a guess...Did you check mmc.h and mmc.cpp ? It is possible PORTL is simply not in these two programs...or it is maybe you code...It happen bugs can appear in libraries. The "was not declared in this scope" mean something is missing in the code.

My guess...

OP,

It's related to the fact that the library is not compatible with arduino 1.0

See if the following tutorial helps you but I suggest you request the library author make some updates.

but I suggest you request the library author make some updates.

Or you download the version 0.23 of the arduino because that is compatible with your library.

Grumpy_Mike:

but I suggest you request the library author make some updates.

Or you download the version 0.23 of the arduino because that is compatible with your library.

Yes, I keep my trusty arduino 0022 and promise not to delete it anytime soon. Most libraries and codes can be made compatible with both arduino 1.0 and pre 1.0 versions without too much hassle but it's best to wait for the author to tackle the libraries (I'm due to release some of these library updates myself :grin:)