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.

Visual C++ 6 Compile Error

Hi,
I am quite new to C++ programming and I have been experimenting with
OpenGL and GLUT. When using one of the sample files for loading models,
on compilation I get the following error.

Example1.obj : error LNK2001: unresolved external symbol "void __cdecl
glmDelete(struct GLMmodel *)" (?glmDelete@@YAXPAUGLMmodel@@@Z)

Now, is this caused by an error in my code, or is it caused by an error
in the sample file I'm including?

Thanks
Connell
Jul 22 '05 #1
7 1498

"Connell Gauld" <co*****@freebreakfast.co.uk> wrote in message
news:cd**********@news6.svr.pol.co.uk...
Hi,
I am quite new to C++ programming and I have been experimenting with
OpenGL and GLUT. When using one of the sample files for loading models,
on compilation I get the following error.

Example1.obj : error LNK2001: unresolved external symbol "void __cdecl
glmDelete(struct GLMmodel *)" (?glmDelete@@YAXPAUGLMmodel@@@Z)

Now, is this caused by an error in my code, or is it caused by an error
in the sample file I'm including?


Well gosh, in the COMPLETE ABSENCE of any posted code it is impossible to
tell.

What this error means is that somewhere in your code (or the sample code)
you are calling the function glmDelete, but nowhere in the your code (or the
sample code) is a definition for that function provided.

I would say that the most likely reason for that is that you are building
your program in the wrong way, perhaps you are not including some file in
your build that you should be. But that is a guess for what should be
obvious reasons.

john
Jul 22 '05 #2
John Harrison wrote:
"Connell Gauld" <co*****@freebreakfast.co.uk> wrote in message
news:cd**********@news6.svr.pol.co.uk...
Hi,
I am quite new to C++ programming and I have been experimenting with
OpenGL and GLUT. When using one of the sample files for loading models,
on compilation I get the following error.

Example1.obj : error LNK2001: unresolved external symbol "void __cdecl
glmDelete(struct GLMmodel *)" (?glmDelete@@YAXPAUGLMmodel@@@Z)

Now, is this caused by an error in my code, or is it caused by an error
in the sample file I'm including?

Well gosh, in the COMPLETE ABSENCE of any posted code it is impossible to
tell.

What this error means is that somewhere in your code (or the sample code)
you are calling the function glmDelete, but nowhere in the your code (or the
sample code) is a definition for that function provided.

I would say that the most likely reason for that is that you are building
your program in the wrong way, perhaps you are not including some file in
your build that you should be. But that is a guess for what should be
obvious reasons.

john

Thanks, I'm sorry for the lack of code but I have been having similar
problems elsewhere and I was looking for a kinda generic answer, which I
got.
Thanks again,
Connell
Jul 22 '05 #3
Connell Gauld posted:
Hi,
I am quite new to C++ programming and I have been experimenting with OpenGL and GLUT. When using one of the sample files for loading models, on compilation I get the following error.

Example1.obj : error LNK2001: unresolved external symbol "void __cdecl glmDelete(struct GLMmodel *)" (? glmDelete@@YAXPAUGLMmodel@@@Z)
Now, is this caused by an error in my code, or is it caused by an error in the sample file I'm including?

Thanks
Connell


My guess is it's an extern "C" issue.

-JKop
Jul 22 '05 #4
>
My guess is it's an extern "C" issue.


Good guess, I should have thought of that.

Connell are you trying to call C code from C++ code?

john
Jul 22 '05 #5

"Connell Gauld" <co*****@freebreakfast.co.uk> wrote in message
news:cd**********@news6.svr.pol.co.uk...
Hi,
I am quite new to C++ programming and I have been experimenting with
OpenGL and GLUT. When using one of the sample files for loading models,
on compilation I get the following error.

Example1.obj : error LNK2001: unresolved external symbol "void __cdecl
glmDelete(struct GLMmodel *)" (?glmDelete@@YAXPAUGLMmodel@@@Z)

Now, is this caused by an error in my code, or is it caused by an error
in the sample file I'm including?


You'll have to check a microsoft newsgroup for Visual C++ - it's not a C++
language problem per se.
Jul 22 '05 #6
John Harrison wrote:
My guess is it's an extern "C" issue.

Good guess, I should have thought of that.

Connell are you trying to call C code from C++ code?

john

Yep, that's it! Thanks!!!
Connell
Jul 22 '05 #7
Connell Gauld posted:
John Harrison wrote:
My guess is it's an extern "C" issue.

Good guess, I should have thought of that.

Connell are you trying to call C code from C++ code?

john

Yep, that's it! Thanks!!!
Connell


*bows*

-JKop
Jul 22 '05 #8

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

Similar topics

6
by: Martin Bless | last post by:
The good news: Along with Python-2.4 comes really good news to Windows users. Yes, you now CAN build extension modules yourself using the SAME C++ compiler and linker Python is built with...
3
by: Olivier Ravard | last post by:
Hi, When I tryed to compile a python module using distutils under windows, and there is an error message if we do not have Microsoft Visual C++ 6 installed. This is because python have been...
0
by: Tom Lee | last post by:
Hi, I'm new to .NET 2003 compiler. When I tried to compile my program using DEBUG mode, I got the following errors in the C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7 \include\xdebug...
7
by: Forecast | last post by:
I run the following code in UNIX compiled by g++ 3.3.2 successfully. : // proj2.cc: returns a dynamic vector and prints out at main~~ : // : #include <iostream> : #include <vector> : : using...
0
by: pareh | last post by:
Hi I get a very strange message when I'm trying to compile a stored procedure. "Error: Input string was not in a correct format." What more that is interesting is that I have compile my...
11
by: Larry Bird | last post by:
I'm attempting to build my first VC++ .net project and I'm unable to get a clean compile. Please view code below: // This is the main project file for VC++ application project // generated...
3
by: John | last post by:
Hi, I am working on a legacy code. Following is a line of the code which complies with Visual C++.NET 2003 but not with Visual C++ 2005: for ( int i = 0; i < (const)(X.size()); i++ ) {}// X is...
6
by: phnimx | last post by:
I'm attempting to migrate a predominately MFC application that I've just inherited from Visual Studio.NET 2003 to Visual Studio 2005. I've managed to clean up a myriad of compile and link errors...
2
by: Marco Wedekind | last post by:
Hello all, I've just read about typelists and their implementation in C++ using templates in http://www.ddj.com/dept/cpp/184403813. Now my very first test code using typelists does not...
0
jwwicks
by: jwwicks | last post by:
Introduction This tutorial describes how to use Visual Studio to create a new C++ program, compile/run a program, resume work on an existing program and debug a program. It is aimed at the...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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...

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.