Ok, the exit error is as follows:
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\stdlib.h(256): error C2381: 'exit' : redefinition; __declspec(noreturn) differs
and the line its complaining about is:
_CRTIMP __declspec(noreturn) void __cdecl exit(int);
And here is the MSDN documentation on C2381:
'function' : redefinition; __declspec(noreturn) differs
A function was declared and then defined but the definition used the noreturn __declspec modifier. The use of noreturn constitutes a redefinition of the function; the declaration and definition need to agree on the use of noreturn.
Briareos wrote:
Ugh... don't do that - don't add files to the Visual Studio installation directory, that's a rather big no-no.
Rather, add the directory that your .lib-file is in to your project's library path, and add the path with the FTGL header files (which are already included with the source) to your project's include path.
I have added the FTGL headers to the include path (and therefore was also required to add the FT headers, because FTGL includes some of the FT headers). But I don't know where to find the library path. All I can find is the Additional Dependencies I mentioned before, and it doesn't look like that wants directories.
TripleM wrote:
doesn't look very well documented at all, but I suggest you try out some of the sample code in the /demo folder for FTGL
I have looked at some of those, but it looks like all they did was include the FTGL headers they used. When I tried that, it couldn't find the corresponding .cpp files (which are in a different directory).
Just for reference, the error messages it gave me before:
c:\Progs\GlutTest\main.cpp(16): error C2065: 'FTGLPixmapFont' : undeclared identifier
c:\Progs\GlutTest\main.cpp(16): error C2146: syntax error : missing ';' before identifier 'font'
c:\Progs\GlutTest\main.cpp(19): error C2228: left of '.Render' must have class/struct/union type
type is ''unknown-type''
c:\Progs\GlutTest\main.cpp(16): error C3861: 'font': identifier not found, even with argument-dependent lookup
c:\Progs\GlutTest\main.cpp(19): error C3861: 'font': identifier not found, even with argument-dependent lookup
And the corresponding lines its complaining about (lines 16-19):
FTGLPixmapFont font("Font:Arial");
glRasterPos2f(1.0f, 1.0f);
glColor3f(1.0f, 1.0f, 1.0f);
font.Render("abcdefg");
____________________________
+++++[>
+++++<
-]>
[>
+++>
++++>
+++++<
<
<
-]>
.>
+.>
-------.<
++++.+++++.