Is there a difference between #include "./test.h"and #include "test.h"for the C / C ++ preprocessor?
#include "./test.h"
#include "test.h"
No, no difference.
You can also have
#include "../thisdir/test.h"
And it will be the same
According to the C standard, there is no difference: the compiler gets an indication of how to look for them. In practice, there should be no difference for any of the implementations that I know of.
.
include . (, -I GCC). . .
-, .
In the case, the #include "test.h"search for the include file is performed in all directories specified in the compiler with the -I option.
In the case #include "./test.h", only the resident directory of the link file is used.
Source: https://habr.com/ru/post/1720771/More articles:How to add css selector to firebug style scope? - firebugStop jQuery Going to uploaded content - jqueryHow to perform multi-line search using regular expression? - regexC # and Regex: how to extract strings between quotes - c #Selling real goods from the iphone app? - iphoneDetecting the same class twice with WCF - classProcessing Office xml documents (xlsx) with PHP - xmlHow to install django dippcript fragment? - linuxRed5: развертывание во время работы Red5 (отказ развертывания WAR: org.springframework.beans.factory. BeanDefinitionStoreException) при нормальном развертывании ok) - deploymentFast scrolling of cells of the table with images. Is this done? - iphoneAll Articles