Hi, i trying to learn static library stuf i tryed this.
this is the headher file
#include "DarkGDK.h"
#ifndef FLIBRARY_H
#define FLIBRARY_H
float GetDistance( float x1 , float y1 , float z1 , float x2 , float y2 , float z2);
#endif
and the c++ file
#include "Flibrary.h"
float GetDistance( float x1 , float y1 , float z1 , float x2 , float y2 , float z2)
{
float dist;
float dx;
float dy;
float dz;
dx = x2 - x1;
dy = y2 - y1;
dz = z2 - z1;
dist = sqrt ( ( dx * dx ) + ( dy * dy ) + ( dz * dz ) );
return dist;
}
the project is in the files.
Game.Love