A question on port methods

I did a simple test using this code:

int outport = 1;
int val = 0;

void setup() {
portMode(outport, OUTPUT);
}

void loop() {
portWrite(outport, val);
val = val + 1;
if (val > 255)
{
val = 0;
}
}

When trying to complile it, these are the error messages I got:

sketch_oct20a.ino: In function 'void setup()':
sketch_oct20a:5: error: 'portMode' was not declared in this scope
sketch_oct20a.ino: In function 'void loop()':
sketch_oct20a:9: error: 'portWrite' was not declared in this scope