0

I'm trying to include the FTGL library into my graphics project, but I keep getting c1083 error whenever I try to include the main header file:

#include <include/FTGL/ftgl.h>

I have added the path $(Project1)include\FTGL to "Additional Include Directories" and VC++ Include Directories to no avail. Project1 is the main solution folder and "include" is the folder where the headers for glew and whatnot are.

What am I doing wrong? Thanks for the help.

SirJames
  • 49
  • 4
  • Did you forget the backslash in $(Project1)include\FTGL? – rwols Jul 01 '13 at 21:03
  • 2
    And try `#include ` if the additional include dir is called ` $(Project1)\include\FTGL`. Or try $(Project1)\include as the dir and use `#include `. – rwols Jul 01 '13 at 21:04
  • As the question stands, you are trying to use `$(Project1)include\FTGL\include\FTGL\ftgl.h` – Derek Jul 01 '13 at 21:05
  • Additionally, see http://stackoverflow.com/questions/21593/what-is-the-difference-between-include-filename-and-include-filename – Derek Jul 01 '13 at 21:13

1 Answers1

1

The rules here are very simple. Say you have a file on your hard drive:

C:\abc\def\include\FTGL\ftgl.h

Then you need to add an include path C:\abc\def to your project and the include statement:

#include <include/FTGL/ftgl.h>

This was tested 1000 times. Works fine! Once you will make this working, start experimenting with $(Project1) and other VS variables.

Kirill Kobelev
  • 10,252
  • 6
  • 30
  • 51