473,396 Members | 1,683 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

NOO-B with OpenGL

I have written a peice of code in Visual V++ 6.0, it is almost
identical to a file I downloaded from www.nehe.com, it basicly sets up
an OpenGL window and scans for key presses.
It compiles ok after I have fixed up the typos, but when it gets to
the linking part I get 15 errors, which I assume are probably based on
the first one, as before I fixed my code these errors did not appear.
------------------------------------------------------------------------
OpenGL Screen Setup.obj : error LNK2001: unresolved external symbol
_gluPerspective@32
------------------------------------------------------------------------
is the 1st error followed by a ton of other "unresolved external
symbol" style errors, I have checked to make sure that I included all
the header files. I don't use the "_gluPerspective" keyword anywhere
in my code. I have no idea why this is not working, after all it is
almost a direct port from a working peice of code, less one message
box.
I don't want to post the code here because it is several pages in
length (and has tons of comments), but if you want to have a look at
it just ask and I'll send it to you.
AcidSphinx
Jul 22 '05 #1
2 2258
On 17 Nov 2003 20:26:10 -0800, Ac********@thevortex.com (AcidSphinx)
wrote in comp.lang.c++:
I have written a peice of code in Visual V++ 6.0, it is almost
identical to a file I downloaded from www.nehe.com, it basicly sets up
an OpenGL window and scans for key presses.


Ask in a Windows programming group like
news:comp.os.ms-windows.win32.programmer. This group discusses the
C++ language, not third-party non-standard libraries.

--
Jack Klein
Home: http://JK-Technology.Com
FAQs for
comp.lang.c http://www.eskimo.com/~scs/C-faq/top.html
comp.lang.c++ http://www.parashift.com/c++-faq-lite/
alt.comp.lang.learn.c-c++ ftp://snurse-l.org/pub/acllc-c++/faq
Jul 22 '05 #2
AcidSphinx wrote:
It compiles ok after I have fixed up the typos, but when it gets to
the linking part I get 15 errors, which I assume are probably based on
the first one, as before I fixed my code these errors did not appear.
------------------------------------------------------------------------
OpenGL Screen Setup.obj : error LNK2001: unresolved external symbol
_gluPerspective@32
------------------------------------------------------------------------


Probably you missed linking with (some of the) OpenGL libraries. Try
appending "-lOpenGL32 -lGlu32 -lGlut32" to the compiler command line.

/ martin

Jul 22 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Dave D | last post by:
I don't want to learn Java, but... I'd like to build an AWT-based applet that takes text input from a user-supplied box (text box) and, if the text matches my secret phrase, pass the user into my...
6
by: nnes | last post by:
I have really no mayor gripes, and the few things I would change would break backward compatibility, but here is the list anyway: 1.) Eliminate the whole long stuff. E.g. built-in long ()...
4
by: Andreas Neudecker | last post by:
Hi. Is there anything like +infinity and -infinity available in Python, and can it be used in comparisons together with int or float numbers? Regards Andreas
28
by: Matt Leslie | last post by:
Hi, I'm trying to use microthreads under stackless python, since they sound like exactly what I am after, but I am having very little success. I've got a fresh install of python 2.3.3 from...
7
by: Stoian | last post by:
hey how is it goin, i've got this problem - declared a template but it doesn't work properly, here is the code: 53 std::map<Config, Config> seen; 54 Config new(); 55 ...
3
by: Prabu Subroto | last post by:
Dear my friends... My boss requested that my application is equipped with emoicon (smiley) in the sales report. That's why I need to know, is it possible to save a small image into the...
3
by: iskeletor | last post by:
#include <stdio.h> #include <string.h> #include <math.h> #include <stdlib.h> #define STUDENT_NUMBER 68 #define ARRAY_LENGTH 10 struct node{ char Name,Surname; int data,no;
8
by: PeterBraden1 | last post by:
Hi, Does anyone know what the state of progress with interfaces for python (last I can see is http://www.python.org/dev/peps/pep-0245/) I would argue that interfaces/(similar feature) are...
3
by: koti688 | last post by:
how to get the column names and the values of them in select statment. I have a packaze like this named ADB.pm package ADB; use DBI; @ISA = ('Exporter');
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.