"Does not name a type" error. How to solve?

Hey! I had read a few posts asking about this subject, but I couldn't find the solution. I was trying to use CuHead v1 WiFi Shield to send a GET request to my local server, but looks like the library and the examples isn't working properly. Here follows the code:

ArduinoCode.pde

/*
 * A simple sketch that uses WiServer to get the hourly weather data from LAX and prints
 * it via the Serial API
 */

#include <WiShield.h>
#include <WiServer.h>

#define WIRELESS_MODE_INFRA	1
#define WIRELESS_MODE_ADHOC	2

// Wireless configuration parameters ----------------------------------------
unsigned char local_ip[] = {192,168,1,2};	// IP address of WiShield
unsigned char gateway_ip[] = {192,168,1,1};	// router or gateway IP address
unsigned char subnet_mask[] = {255,255,255,0};	// subnet mask for the local network
const char ssid[] PROGMEM = {"MY SSID NETWORK"};		// max 32 bytes

unsigned char security_type = 3;	// 0 - open; 1 - WEP; 2 - WPA; 3 - WPA2

// WPA/WPA2 passphrase
const char security_passphrase[] PROGMEM = {"MYPASSWORD"};	// max 64 characters

// WEP 128-bit keys
// sample HEX keys
const char PROGMEM wep_keys[] PROGMEM = { 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0a, 0x0b, 0x0c, 0x0d,	// Key 0
				  0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,	// Key 1
				  0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,	// Key 2
				  0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00	// Key 3
				};

// setup the wireless mode
// infrastructure - connect to AP
// adhoc - connect to another WiFi device
unsigned char wireless_mode = WIRELESS_MODE_INFRA;

unsigned char ssid_len;
unsigned char security_passphrase_len;
// End of wireless configuration parameters ----------------------------------------


// Function that prints data from the server
void printData(char* data, int len) {
  
  // Print the data returned by the server
  // Note that the data is not null-terminated, may be broken up into smaller packets, and 
  // includes the HTTP header. 
  while (len-- > 0) {
    Serial.print(*(data++));
  } 
}


// IP Address for www.weather.gov  
uint8 ip[] = {192,168,1,2};

// A request that gets the latest METAR weather data for LAX
GETrequest getWeather(ip, 80, "localhost", "/index.php?id=1");


void setup() {
    // Initialize WiServer (we'll pass NULL for the page serving function since we don't need to serve web pages) 
  WiServer.init(NULL);
  
  // Enable Serial output and ask WiServer to generate log messages (optional)
  Serial.begin(57600);
  WiServer.enableVerboseMode(true);

  // Have the processData function called when data is returned by the server
  getWeather.setReturnFunc(printData);
}


// Time (in millis) when the data should be retrieved 
long updateTime = 0;

void loop(){

  // Check if it's time to get an update
  if (millis() >= updateTime) {
    getWeather.submit();    
    // Get another update one hour from now
    updateTime += 1000 * 60 * 60;
  }
  
  // Run WiServer
  WiServer.server_task();
 
  delay(10);
}

WiServer.h

WiServer.cpp

This code give me this errors:

ArduinoCode.pde:57:1: error: 'GETrequest' does not name a type
ArduinoCode.pde: In function 'void setup()':
ArduinoCode.pde:69:3: error: 'getWeather' was not declared in this scope
ArduinoCode.pde: In function 'void loop()':
ArduinoCode.pde:80:5: error: 'getWeather' was not declared in this scope

I had to paste the code into PasteBin because of the 900 characters limit of the forum.

Which direcory are the library files installed in ?
Did you stop and restart the IDE after installing them ?

UKHeliBob:
Which direcory are the library files installed in ?
Did you stop and restart the IDE after installing them ?

The library directory is /usr/share/arduino/libraries/ZG2100BasedWiFiShield

I did stop and restart the IDE after installing.

The library directory is arduino/libraries/library_folder

You aren't using a library called library_folder. When asked for the library path, we mean the EXACT path of the library in question.

I don't do rubbish bin. Attach your code properly, using the Additional Options... link, or I'll move on.

PaulS:

The library directory is arduino/libraries/library_folder

You aren't using a library called library_folder. When asked for the library path, we mean the EXACT path of the library in question.

I don't do rubbish bin. Attach your code properly, using the Additional Options... link, or I'll move on.

I tryed to attach my code properly, but the forum didn't allow me to save my post!

/usr/share/arduino/libraries/ZG2100BasedWiFiShield

That's why the program can't find the libraries. The folder name must match that of the library it contains.

UKHeliBob:

/usr/share/arduino/libraries/ZG2100BasedWiFiShield

That's why the program can't find the libraries. The folder name must match that of the library it contains.

I renamed the folder to "WiServer", but nothing changed. The errors keep coming. I already use part of this library in another project, but I had to modify a lot of the code to avoid some errors.. I haven't changed anything in this part of the code or its dependencies...