NO

Author Topic: Adding source and headers from relative path  (Read 960 times)

Offline Jacky

  • Member
  • *
  • Posts: 5
Adding source and headers from relative path
« on: April 08, 2016, 11:56:47 am »
Pelles C IDE doesn't support adding files from other directory. So all the files must be in same directory.
But if they are treated as the shared common library for several project located in different directories, it is so inconvenient.

Offline PaoloC13

  • Member
  • *
  • Posts: 25
Re: Adding source and headers from relative path
« Reply #1 on: April 20, 2016, 08:36:03 pm »
Normally I create different folders for my sources in a single project.
I connect them with a syntax like:

#include "..\TreeView.h"
#include "FileParser\FileList.h"

What seems that the PellesC IDE is missing, is the correspondence of these folders in the TreeView "souce files" directory for the project.

Offline Bitbeisser

  • Global Moderator
  • Member
  • *****
  • Posts: 754
Re: Adding source and headers from relative path
« Reply #2 on: April 21, 2016, 06:02:49 pm »
Pelles C IDE doesn't support adding files from other directory. So all the files must be in same directory.
But if they are treated as the shared common library for several project located in different directories, it is so inconvenient.
That's what precompiled libraries are for. Put those files into the linker path (and of course the header files into the include path) of the IDE. Problem solved...

Ralf