Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] Question about double quotes

BTW CDT is pretty fancy, if it find that the include can be done with <> it uses that when organising imports, creating new classes or any other code that (re)writes includes. (actually a past gripe by multiple users is that if CDT finds it can use <> it does, even though the user does not want it.)

Marco, as to your question, I am not sure. But I think in that scenario you need to include relative includes (e.g. #include "../funcA/headerA.h")

HTH,
Jonah
~~~
Jonah Graham
Kichwa Coders Ltd.
www.kichwacoders.com


On Thu, 28 Mar 2019 at 14:00, Doug Schaefer <dschaefer@xxxxxxxxxxxxxx> wrote:
We probably should never use angle brackets to include other files in the workspace, or at least in the same project. Although if we checked the include path for the file and found the directory was in there, we may want to use angle brackets. But that would be pretty fancy.

Doug.

On Thu, 2019-03-28 at 18:48 +0100, marco wrote:
Hi guys,

just a question about how CDT use double quotes for include files. I 
have this project managed by CDT:

root
   |-text
   |-scripts
   |-src
     |-funcA
     |-funcB
     |-funcC

I added include paths for funcA, funcB and funcC. Everything works but 
when I create a new class in funcC for example it uses angle brackets. 
Looking at the code it seems it uses system style (angle brackets) 
because I added the path in the settings. So maybe I'm missing something 
here. If I don't add the include path it can't compile because class in 
funcC can't see an header in funcA. How should I create the project to 
have the proper behavior?

Thanks.
_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://urldefense.proofpoint.com/v2/url?u=https-3A__www.eclipse.org_mailman_listinfo_cdt-2Ddev&d=DwICAg&c=yzoHOc_ZK-sxl-kfGNSEvlJYanssXN3q-lhj0sp26wE&r=NrrbvTHWa2Nbp_kAN0Hl1o3lM1WAwSes64uBjxjNhMc&m=TDnwXvcVluRXegk3AgvLTZB6GI87VUFI1dWvM0xkaXk&s=IOeK2rvp1OKM_EZZhhY47NXFHpV-WG2Y-QWptcnjoZQ&e=

_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/cdt-dev

Back to the top