math.h code composer studio
if your using a .h file
the device type needs to be in the header
and not in the .c files
here is an example
comvdd.h file
=========
#include <16F877.H> << include header file
#fuses HS, NOPROTECT, PUT, NOWDT, BROWNOUT, NOLVP, NOCPD
#device *=16 //use 16 bit
#device ADC=10 // use 10 bit adc convertions
/// for a boot loader
#ORG 0x1F00,0x1FFF //for the 8k 16F876/7
void loader() { }
// mcu clock
#use delay(clock=20000000)
type defines.....
comvdd.c file
=========
#include "COMVDD.H"
// STANDARD LIBRARYS INCLUDED
#include <STDLIB.H>
#include <stdio.h>
#include <ctype.h>
#include <math.h>
#include "COMVDD_PORTS.C" << include other .c files
#include "COMVDDLCD.C" << include other .c files
... main routines
i attached the full code if you want to build it
youll need to divy up a blank project and add the files back in
if you look in comvdd folder
there is also an example of an inline version
some code may be usefull to you
check this direct link
**broken link removed**