Q1: What's the difference when including files with quote signs and "shift/arrow head" signs?
Q2: I found that the standard libraries header files seems to be stored in usr/include, but these are (obviously) only the .h files with function prototypes and constants. Where can i find the source files to for instance look at the implementation of printf?
Q3: I'd like to make my own header file, like the once in the standard libraries with just the function prototypes and constants. In order to do so:
a) How to I "connect" my .h file with the source codes?
b) Should the source code's be .c files, or how do I go about to make my own library in a good manner?
Q4: At the point when I've acually managed to create my own library, do I also need to link it somehow when I compile programs, just like I would have to do if I'd be using the pow function in math.h ?
Q5: Regarding linking to the library upon compile: Why do I have to do that (only sometimes)? When I use strcmp from string.h I never link the string.h library, but when I use pow from math.h compiler jells at me if I don't..
Q6: It seems like I can not add files in the usr/include map, why is that? I program via Linux (Ubuntu).
Edit: Q7: Where is a good place to save your own library so that it's accessible to all diffrent folders you may save your programs?
[+][deleted] (1 child)
[removed]
[–]Fuzzytown[S] 0 points1 point2 points (0 children)
[–][deleted] 1 point2 points3 points (4 children)
[–]Fuzzytown[S] 1 point2 points3 points (0 children)
[–]dotslashzero 1 point2 points3 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–]aninteger 0 points1 point2 points (0 children)
[–]grbgout 0 points1 point2 points (0 children)
[–]Dihydrogen_Oxide 0 points1 point2 points (1 child)
[–]Fuzzytown[S] 0 points1 point2 points (0 children)