Click here to Skip to main content
15,880,392 members
Articles / Desktop Programming / MFC

OAG Library (OpenGL) Part 1 - Setting Up the Library for an MFC Application

Rate me:
Please Sign up or sign in to vote.
4.40/5 (11 votes)
7 Aug 2011CPOL3 min read 56K   56  
OAG is a library written in C++. With this library, you can create OpenGL based applications.
��<html>

<head>

<META HTTP-EQUIV="Content-Type" content="text/html; charset=utf-16">

</head>

<body>

<pre>

<table width=100% bgcolor=#CFCFE5><tr> <td> <font face=arial size=+3>

Build Log

</font></table><table width=* cellspacing=0 cellpadding=0><tr><td width=0 bgcolor=#EDEDF5>&nbsp;</td><td width=0 bgcolor=#FFFFFF>&nbsp;</td><td width=*><pre>

<h3>Build started: Project: oag, Configuration: Release|Win32</h3>

</pre></table><table width=100% bgcolor=#DFDFE5><tr><td><font face=arial size=+2>

Command Lines

</font></table><table width=* cellspacing=0 cellpadding=0><tr><td width=0 bgcolor=#EDEDF5>&nbsp;</td><td width=0 bgcolor=#FFFFFF>&nbsp;</td><td width=*><pre>Creating temporary file "c:\Libs_Projects\OAGLibrary\Workspaces\VC9\OpenGL\oag\Release\RSP00003741841500.rsp" with contents

[

/O2 /Oi /GL /I &quot;..\..\..\..\..\WinAPIs\XmlParserInterface&quot; /I &quot;..\..\..\..\..\WinAPIs\LibXML\include&quot; /I &quot;..\..\..\..\..\WinAPIs\FTGL-2.1.3rc5&quot; /I &quot;..\..\..\..\..\WinAPIs\FTGL-2.1.3rc5\include&quot; /I &quot;..\..\..\..\..\WinAPIs\freetype-2.3.11\include&quot; /D &quot;WIN32&quot; /D &quot;NDEBUG&quot; /D &quot;_LIB&quot; /FD /EHsc /MD /Gy /Fo&quot;Release\\&quot; /Fd&quot;Release\vc90.pdb&quot; /W3 /c /Zi /TP ..\..\..\..\OpenGL\src\oag\Geometry.cpp


..\..\..\..\OpenGL\src\oag\OAGScene.cpp


..\..\..\..\OpenGL\src\oag\OAGPrimitives.cpp


..\..\..\..\OpenGL\src\oag\OAGObject.cpp

]

Creating command line "cl.exe @c:\Libs_Projects\OAGLibrary\Workspaces\VC9\OpenGL\oag\Release\RSP00003741841500.rsp /nologo /errorReport:prompt"

Creating temporary file "c:\Libs_Projects\OAGLibrary\Workspaces\VC9\OpenGL\oag\Release\RSP00003C41841500.rsp" with contents

[

/OUT:&quot;..\..\..\..\bin\VC9\oag.lib&quot; /LTCG opengl32.lib glu32.lib


.\Release\Geometry.obj


.\Release\OAGObject.obj


.\Release\OAGPrimitives.obj


.\Release\OAGScene.obj

]

Creating command line "lib.exe @c:\Libs_Projects\OAGLibrary\Workspaces\VC9\OpenGL\oag\Release\RSP00003C41841500.rsp /NOLOGO"

</pre></table><table width=100% bgcolor=#DFDFE5><tr><td><font face=arial size=+2>

Output Window

</font></table><table width=* cellspacing=0 cellpadding=0><tr><td width=0 bgcolor=#EDEDF5>&nbsp;</td><td width=0 bgcolor=#FFFFFF>&nbsp;</td><td width=*><pre>Compiling...

Geometry.cpp

OAGScene.cpp

OAGPrimitives.cpp

..\..\..\..\OpenGL\src\oag\OAGPrimitives.cpp(180) : warning C4244: 'initializing' : conversion from 'double' to 'float', possible loss of data

..\..\..\..\OpenGL\src\oag\OAGPrimitives.cpp(181) : warning C4244: 'initializing' : conversion from 'double' to 'float', possible loss of data

..\..\..\..\OpenGL\src\oag\OAGPrimitives.cpp(182) : warning C4244: 'initializing' : conversion from 'double' to 'float', possible loss of data

OAGObject.cpp

..\..\..\..\OpenGL\src\oag\OAGObject.cpp(58) : warning C4244: 'argument' : conversion from 'float' to 'int', possible loss of data

..\..\..\..\OpenGL\src\oag\OAGObject.cpp(58) : warning C4996: 'itoa': The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _itoa. See online help for details.

        C:\Program Files\Microsoft Visual Studio 9.0\VC\include\stdlib.h(862) : see declaration of 'itoa'

..\..\..\..\OpenGL\src\oag\OAGObject.cpp(59) : warning C4244: 'argument' : conversion from 'float' to 'int', possible loss of data

..\..\..\..\OpenGL\src\oag\OAGObject.cpp(59) : warning C4996: 'itoa': The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _itoa. See online help for details.

        C:\Program Files\Microsoft Visual Studio 9.0\VC\include\stdlib.h(862) : see declaration of 'itoa'

..\..\..\..\OpenGL\src\oag\OAGObject.cpp(60) : warning C4244: 'argument' : conversion from 'float' to 'int', possible loss of data

..\..\..\..\OpenGL\src\oag\OAGObject.cpp(60) : warning C4996: 'itoa': The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _itoa. See online help for details.

        C:\Program Files\Microsoft Visual Studio 9.0\VC\include\stdlib.h(862) : see declaration of 'itoa'

..\..\..\..\OpenGL\src\oag\OAGObject.cpp(61) : warning C4244: 'argument' : conversion from 'float' to 'int', possible loss of data

..\..\..\..\OpenGL\src\oag\OAGObject.cpp(61) : warning C4996: 'itoa': The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _itoa. See online help for details.

        C:\Program Files\Microsoft Visual Studio 9.0\VC\include\stdlib.h(862) : see declaration of 'itoa'

Creating library...

glu32.lib(GLU32.dll) : warning LNK4006: __NULL_IMPORT_DESCRIPTOR already defined in opengl32.lib(OPENGL32.dll); second definition ignored

</pre></table><table width=100% bgcolor=#DFDFE5><tr><td><font face=arial size=+2>

Results

</font></table><table width=* cellspacing=0 cellpadding=0><tr><td width=0 bgcolor=#EDEDF5>&nbsp;</td><td width=0 bgcolor=#FFFFFF>&nbsp;</td><td width=*><pre>Build log was saved at "file://c:\Libs_Projects\OAGLibrary\Workspaces\VC9\OpenGL\oag\Release\BuildLog.htm"

oag - 0 error(s), 12 warning(s)

</pre></table><table   width=100% height=20 bgcolor=#CFCFE5><tr><td><font face=arial size=+2>

</font></table></body></html>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer
Brazil Brazil
I live in Matão, a small city in Brazil. I studied as Programmer in a College for Software Development in Database.
After finishing the College I have been working with java, c# and Computer Graphics with searches for OpenGL.

Comments and Discussions