Skip to main content
gamedev.net
🔒 Locked

help...

Started by ej_blueangel 1 reply 2k views
Original Post
ej_blueangel
ej_blueangel
Hi!!! I'm currently working with our project and we are using OpenGL and Visual C++ 2008 Express Edition as our IDE. when I Build the project I encountered this errors: ------ Build started: Project: Interface, Configuration: Debug Win32 ------ Copying 'g:\opentk-092\binaries\OpenTK.dll' to target directory... Compiling... stdafx.cpp Compiling... DancerApp.cpp Compiling... walkviewer.cpp walker.cpp .\walker\walk\walker.cpp(259) : warning C4996: 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. C:\Program Files\Microsoft Visual Studio 9.0\VC\include\stdio.h(237) : see declaration of 'fopen' .\walker\walk\walker.cpp(266) : warning C4996: 'fscanf': This function or variable may be unsafe. Consider using fscanf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. C:\Program Files\Microsoft Visual Studio 9.0\VC\include\stdio.h(256) : see declaration of 'fscanf' .\walker\walk\walker.cpp(270) : warning C4996: 'fscanf': This function or variable may be unsafe. Consider using fscanf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. C:\Program Files\Microsoft Visual Studio 9.0\VC\include\stdio.h(256) : see declaration of 'fscanf' .\walker\walk\walker.cpp(277) : warning C4996: 'fscanf': This function or variable may be unsafe. Consider using fscanf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. C:\Program Files\Microsoft Visual Studio 9.0\VC\include\stdio.h(256) : see declaration of 'fscanf' .\walker\walk\walker.cpp(281) : warning C4996: 'fscanf': This function or variable may be unsafe. Consider using fscanf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. C:\Program Files\Microsoft Visual Studio 9.0\VC\include\stdio.h(256) : see declaration of 'fscanf' .\walker\walk\walker.cpp(286) : warning C4996: 'fscanf': This function or variable may be unsafe. Consider using fscanf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. C:\Program Files\Microsoft Visual Studio 9.0\VC\include\stdio.h(256) : see declaration of 'fscanf' .\walker\walk\walker.cpp(304) : warning C4996: 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. C:\Program Files\Microsoft Visual Studio 9.0\VC\include\stdio.h(237) : see declaration of 'fopen' .\walker\walk\walker.cpp(375) : warning C4101: 'newcsetname' : unreferenced local variable .\walker\walk\walker.cpp(373) : warning C4101: 'direntp' : unreferenced local variable .\walker\walk\walker.cpp(1053) : warning C4101: 'sub2' : unreferenced local variable models.cpp Generating Code... Compiling... extra.cpp Interface.cpp AssemblyInfo.cpp Generating Code... Compiling managed resources... Read in 6 resources from "g:\Interface - Copy\Interface - Copy\Interface\Form1.resX" Writing resource file... Done. Compiling resources... Microsoft (R) Windows (R) Resource Compiler Version 6.1.6723.1 Copyright (C) Microsoft Corporation. All rights reserved. Linking... LINK : fatal error LNK1104: cannot open file 'glut32.lib' Caching metadata information for g:\opentk-092\binaries\opentk.dll... Build log was saved at "file://g:\Interface - Copy\Interface - Copy\Interface\Debug\BuildLog.htm" Interface - 1 error(s), 10 warning(s) ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ========== can someone help me solve this???
Drew_Benton
Drew_Benton
You only have one error, the rest are warnings:

Quote:
LINK : fatal error LNK1104: cannot open file 'glut32.lib'


That simply means glut32.lib is not in the library path for your project. You will need to set your project to look for library files wherever you extracted Glut at.

You can do this via: Tools->Options->Projects and Solutions->VC++ Directories->Show Directories for Library Files and add the path there.

A second method is to add the path to Glut into your project's settings. Right click on your project in the solution explorer (not the solution!) and go to Properties->Configuration Properties->Linker->General and fill in the path in the "Additional Library Directories"

Don't forget you need to place glut32.dll in the same folder as your main project so it can run!
ej_blueangel
ej_blueangel
hey, thanks...I did what you said...
It helped a lot...

I have another problem if you don't mind...

I find it difficult to integrate an OpenGL project into an interface I made with the windows forms application. Can you help me how to do it???
By the way I'm using Visual C++ 2008 Express Edition as my IDE.
Thanks :-)

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.