Question: Getting these error while trying to integrate `SKMaps` framework 

```
Undefined symbols for architecture x86_64:

  "CRouteTestManager::calculateRoute(NGRouteInput const&, std::__1::shared_ptr<CRoute>&)", referenced from:

      PoiTrackerTest::createRoute() in SKMaps(PoiTrackerTest.o)

  "_gpTestRoutesManager", referenced from:

      PoiTrackerTest::createRoute() in SKMaps(PoiTrackerTest.o)
      createNavigationObject(int) in SKMaps(NavigationTest.o)

ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

```

Please help me resolve this error.

```
Environment :
Xcode 6.3.1, Mac OSX 10.10.3
Deployment Target iOS7.0

```

Supports Swift.

i was following this guide : <http://developer.skobbler.com/getting-started/ios>

and also added CoreMotion.framework as there were also linking errors related to that framework.

Answer: 
The Fibonacci sequence operates as the following:

1 1 2 3 5 8 13 21 34 etc....

So it comes down to the formula of F(n) = F(n-2) + F(n-1). You are missing code to increment days.

Try this:

```
days = 1;
next = 0;
first = 0;
second = 1;

while(next < 10000000) {
    next = first + second;
    first = second;
    second = next;
    printf("The day %d has %d spores\n", days, next);
    days++;
}

```

That should generate a proper Fibonacci number sequence. If not, I'll correct it.

EDIT: I also noticed that your printf statement is not inside the while loop. Furthermore, notice how I setup the variables before I entered the loop so as to not require an if statement inside the loop. It's more of a performance issue as the less stuff there is to do inside the loop, the faster it will execute.
The problem is that you don't count the days you entered when you are calculating the number of spore. Here is a simple working code.

```
#include <stdio.h>
#include <stdlib.h>
#define LIMIT 10000000
int main()
{
    int days, next, first=0, second=1, i = 0, current_day = 1;

    printf("Enter the day you want to know how many spores exists on\n");
    scanf("%d", &days);

    while(i < days) {

        if(days == 1) {
            next = 1;
        }
        if(next < LIMIT){
            next = first + second;
            first = second;
            second = next;
            printf("Spores at day %d : %d\n", current_day, next);
            current_day++;
        }
        if(next>= LIMIT)
        {
            printf("You reached the limit of 10.000.000 spores in %d days.\n", current_day);
            break;
        }
        i++;
    }

    return 0;
}

```