File: dlib_include_path_tutorial.txt

package info (click to toggle)
mldemos 0.5.1-3
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 32,224 kB
  • ctags: 46,525
  • sloc: cpp: 306,887; ansic: 167,718; ml: 126; sh: 109; makefile: 2
file content (20 lines) | stat: -rw-r--r-- 1,033 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#error "Don't put the dlib folder in your include path"
/*
  You are getting this error because you have added the dlib folder to your
  compiler's include search path.  

  You should *NOT* add the dlib folder itself to your compiler's include path. 
  Doing so will cause the build to fail because of name collisions (such as 
  dlib/string.h and string.h from the standard library). Instead you should 
  add the folder that contains the dlib folder to your include search path 
  and then use include statements of the form #include <dlib/queue.h> or
  #include "dlib/queue.h".  This will ensure that everything builds correctly.

  XCode:
  	The XCode IDE often puts all folders that it knows about into 
	the compiler search path.  So if you are using XCode then either 
	don't drag the whole dlib folder into the project or alternatively 
	modify your XCode project settings to not auto-add all folders to 
	the include path.  Instead just make sure that the dlib folder is 
	itself inside a folder in your include path.  
*/