NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

include external file in compiling

 
Post new topic   Reply to topic    NetBeans Forums -> C/C++ Users
View previous topic :: View next topic  
Author Message
CountVlad



Joined: 03 Apr 2017
Posts: 1
Location: MD

PostPosted: Mon Apr 03, 2017 12:16 pm    Post subject: include external file in compiling Reply with quote

I have the following code:

Code:
    main.c

    #include <stdio.h>

    int main(int argc, const char * argv[]) {
        read(header_file.h);
        return 0;
    }



Code:
   header_file.h

    #include <stdio.h>
    #include <aux1.h>
    #include <aux2.h>

    int main(int argc, const char * argv[]) {
        execute code;
        return 0;
    }


I read header_file.h in main program. In header_file.h i have two other headers that i have to include.

What do i have to do to have the two aux headers in the path?

how can i tell the compiler that when the application reads the header_file.h knows where to go to find aux1 and aux2?

I'm using netbeans 8.2.

Thank you
Back to top
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> C/C++ Users All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo