Thread: c #include
View Single Post
  #1 (permalink)  
Old December 3rd, 2007, 06:15 AM
vicoldan vicoldan is offline
Registered User
 
Join Date: Dec 2007
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default c #include

i have a problem with the #include in c. here are the 4 files I use(a.h;a.c;b.h;b.c):

a.h:
--------------------
#include <stdio.h>
int atr();
--------------------

a.c:
-------------
#include "a.h"

inc atr()
{return 3;}

int main()
{}
-------------

b.h:
---------
#include "a.h"
---------

b.c:
--------
#include "b.h"

main()
{int e;
 e=atr();
 printf("%d",e);
}
-------

when i compile "b.c", it does not find the function atr()?

vicol
Reply With Quote