Click here to Skip to main content
15,881,882 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: OAGMFC, 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:\Projetos Visual Studio\OAGMFC\OAGMFC\Release\RSP00000453162884.rsp" with contents

[

/O2 /Oi /GL /I &quot;C:\Libs_Projects\OAGLibrary\OpenGL\include\oag&quot; /I &quot;c:\Libs_Projects\OAGLibrary\OpenGL\include\Texture&quot; /I &quot;c:\Libs_Projects\OAGLibrary\OpenGL\include\BMP&quot; /I &quot;c:\Libs_Projects\OAGLibrary\OpenGL\include\PCX&quot; /I &quot;c:\Libs_Projects\OAGLibrary\OpenGL\include\OAGXML&quot; /I &quot;c:\Libs_Projects\OAGLibrary\OpenGL\include\JPG&quot; /I &quot;C:\Libs_Projects\OAGLibrary\OpenGL\include\Font&quot; /I &quot;C:\Libs_Projects\OAGLibrary\OpenGL\include\WindowsViewer&quot; /I &quot;C:\Libs_Projects\WinAPIs\XmlParserInterface&quot; /I &quot;C:\Libs_Projects\WInAPis\LibXML\include&quot; /I &quot;C:\Libs_Projects\WinAPIs\FTGL-2.1.3rc5\include&quot; /I &quot;C:\Libs_Projects\WinAPIs\freetype-2.3.11\include&quot; /I &quot;c:\Libs_Projects\OAGLibrary\OpenGL\include\TextureMapping&quot; /I &quot;C:\Libs_Projects\OAGLibrary\OpenGL\include\FontMapping&quot; /D &quot;WIN32&quot; /D &quot;_WINDOWS&quot; /D &quot;NDEBUG&quot; /D &quot;_AFXDLL&quot; /FD /EHsc /MD /Gy /Yu&quot;stdafx.h&quot; /Fp&quot;Release\OAGMFC.pch&quot; /Fo&quot;Release\\&quot; /Fd&quot;Release\vc90.pdb&quot; /W3 /c /Zi /TP &quot;.\OAGMFCView.cpp&quot;

]

Creating command line "cl.exe @"c:\Projetos Visual Studio\OAGMFC\OAGMFC\Release\RSP00000453162884.rsp" /nologo /errorReport:prompt"

Creating command line "rc.exe /d "NDEBUG" /d "_AFXDLL" /l 0x409 /I "Release" /fo"Release/OAGMFC.res" ".\OAGMFC.rc""

Creating temporary file "c:\Projetos Visual Studio\OAGMFC\OAGMFC\Release\RSP00000553162884.rsp" with contents

[

/OUT:&quot;C:\Projetos Visual Studio\OAGMFC\Release\OAGMFC.exe&quot; /INCREMENTAL:NO /LIBPATH:&quot;C:\Libs_Projects\OAGLibrary\bin\VC9&quot; /LIBPATH:&quot;C:\Libs_Projects\WinAPIs\XmlParserInterface\Release&quot; /MANIFEST /MANIFESTFILE:&quot;Release\OAGMFC.exe.intermediate.manifest&quot; /MANIFESTUAC:&quot;level='asInvoker' uiAccess='false'&quot; /DEBUG /PDB:&quot;C:\Projetos Visual Studio\OAGMFC\Release\OAGMFC.pdb&quot; /SUBSYSTEM:WINDOWS /OPT:REF /OPT:ICF /LTCG /DYNAMICBASE /NXCOMPAT /MACHINE:X86 oagCommon.lib oag.lib WindowsViewer.lib XmlParserInterface.lib Texture.lib TextureMapping.lib BMP.lib JPG.lib PCX.lib TGA.lib OAGXML.lib IOSystem.lib Font.lib ObjectMappingTable.lib FontMapping.lib


&quot;.\Release\DlgTextureList.obj&quot;


&quot;.\Release\MainFrm.obj&quot;


&quot;.\Release\OAGMFC.obj&quot;


&quot;.\Release\OAGMFCDoc.obj&quot;


&quot;.\Release\OAGMFCView.obj&quot;


&quot;.\Release\stdafx.obj&quot;


&quot;.\Release\OAGMFC.res&quot;


&quot;.\Release\LineTool.obj&quot;


&quot;.\Release\PolylineTool.obj&quot;


&quot;.\Release\RasterImageRectTool.obj&quot;


&quot;.\Release\RasterImageTool.obj&quot;


&quot;.\Release\RasterImageTriangleTool.obj&quot;


&quot;.\Release\RectangleTool.obj&quot;


&quot;.\Release\Text2DTool.obj&quot;


&quot;.\Release\Tool.obj&quot;


&quot;.\Release\TriangleTool.obj&quot;

]

Creating command line "link.exe @"c:\Projetos Visual Studio\OAGMFC\OAGMFC\Release\RSP00000553162884.rsp" /NOLOGO /ERRORREPORT:PROMPT"

Creating temporary file "c:\Projetos Visual Studio\OAGMFC\OAGMFC\Release\RSP00000653162884.rsp" with contents

[

/outputresource:&quot;..\Release\OAGMFC.exe;#1&quot; /manifest


&quot;.\Release\OAGMFC.exe.intermediate.manifest&quot;

]

Creating command line "mt.exe @"c:\Projetos Visual Studio\OAGMFC\OAGMFC\Release\RSP00000653162884.rsp" /nologo"

Creating temporary file "c:\Projetos Visual Studio\OAGMFC\OAGMFC\Release\BAT00000753162884.bat" with contents

[

@echo Manifest resource last updated at %TIME% on %DATE% &gt; &quot;.\Release\mt.dep&quot;

]

Creating command line """c:\Projetos Visual Studio\OAGMFC\OAGMFC\Release\BAT00000753162884.bat"""

</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...

OAGMFCView.cpp

.\OAGMFCView.cpp(243) : warning C4244: 'argument' : conversion from 'LONG' to 'const float', possible loss of data

.\OAGMFCView.cpp(243) : warning C4244: 'argument' : conversion from 'LONG' to 'const float', possible loss of data

.\OAGMFCView.cpp(263) : warning C4244: 'argument' : conversion from 'LONG' to 'const float', possible loss of data

.\OAGMFCView.cpp(263) : warning C4244: 'argument' : conversion from 'LONG' to 'const float', possible loss of data

Compiling resources...

Microsoft (R) Windows (R) Resource Compiler Version 6.1.6723.1

Copyright (C) Microsoft Corporation.  All rights reserved.

Linking...

LINK : warning LNK4098: defaultlib 'LIBCMT' conflicts with use of other libs; use /NODEFAULTLIB:library

Generating code

Finished generating code

Embedding manifest...

</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:\Projetos Visual Studio\OAGMFC\OAGMFC\Release\BuildLog.htm"

OAGMFC - 0 error(s), 5 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