Wrox Programmer Forums
|
Need help with your homework? Need help with a homework question on any programming language? Post questions and help here, not in the language topic forums.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Need help with your homework? section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old December 3rd, 2007, 06:15 AM
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





Similar Threads
Thread Thread Starter Forum Replies Last Post
Include in C# su C# 2 December 15th, 2006 04:59 AM
USING INCLUDE FIEL jhan316 Beginning PHP 1 August 8th, 2006 08:01 AM
#include arielote C# 3 February 26th, 2006 07:54 PM
difference between include file & include virtual crmpicco Classic ASP Basics 2 January 23rd, 2006 11:50 AM
xsl:include within include chuck123ie XSLT 1 January 5th, 2006 11:07 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.