473,378 Members | 1,577 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,378 software developers and data experts.

Error LNK2019

TimNick90
I am having a problem with my program for a class of mine and my instructor has tried to help me out. But he does not know what the error is and has looked up some things. From what I have researched I understand the error LNK2019 is saying that there is a function or something either misspelled or I am using different versions of a library in different parts of my program. The thing I do not under stand about that is that there is only the main page in this program it refers to several graphics library's, thats it. I was having the same problem with a similar program and solved it by adding another graphics library only this time that hasn't worked. If anyone is familiar with this error and could help me that would be greatly appreciated. Thanks

TimNick
Jan 10 '08 #1
3 1768
weaknessforcats
9,208 Expert Mod 8TB
An LNK2019 always means an unresolved external reference. That is, you have referred to something (it's mame is in the LNK2019 message) but have failed to provide a defintion.

Look at what's missing. Is it one of your things or somethng from a library you are using? In either case you have to define that thing by writibng the definition yourself or adding the necessary library to your build.
Jan 10 '08 #2
RRick
463 Expert 256MB
As W4cats suggested, take a look at what is missing in the error message. If its something created or called by your code, then fix it.

The other possibility is that the missing routine is needed by the graphics library and not called directly by your code. This means your library is missing some code, probably another library. Its pretty common for a 3rd party library to need other libraries installed. Its not that much fun figuring out what is needed.

In this case go to libraries home page and see what dependencies it needs. If worst comes to worst, reinstall the library and its dependencies. Be carefull of the versions of the needed libraries. An old version might be missing what you need.

One last trick is to google the complete error message (minus any reference to your source code names). Someone else has probably run into this error.
Jan 10 '08 #3
I figured it out, there was a function was a misspelling of one function that had the same name as another function so I didn't catch it before, deltay() and delay(). Thanks

TimNick
Jan 11 '08 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Vishal Saxena | last post by:
Hi, I am new to this news group, hope to get prompt solution from you, gurus of VC. Well i had a project developed in VC++ 6.0, it uses Adobe Plugin Development SDK, I am trying to upgrade my...
2
by: hazizpour | last post by:
Hello I hope I am in the correct newsgroup, if not please let me know. I am trying to build a sample for using a certain library ( IFC mapping to C++ classes, see www.cstb.fr) with MS Visual...
0
by: Usman | last post by:
Hi I've a COM compiled in visual studio 6 that is internally using zlib library (an opensource library for compression). I've no problem compiling that code. But when I moved to visual...
1
by: developer | last post by:
Hi All I have made a .NET project. the files included are borland c++ files that i am migrate to VC++ .NET I am using Microsoft Visual C++ .NET 2003. the compilation goes through properly,...
2
by: f rom | last post by:
----- Forwarded Message ---- From: Josiah Carlson <jcarlson@uci.edu> To: f rom <etaoinbe@yahoo.com>; wxpython-users@lists.wxwidgets.org Sent: Monday, December 4, 2006 10:03:28 PM Subject: Re: ...
1
by: girays | last post by:
I have a template class which name is EntityRepository and when I compile this class I get no error. But when I use this class in a main method I get LNK2019 linking error. std::map object is used...
4
by: jk2l | last post by:
Error 10 error LNK2019: unresolved external symbol __imp__glBindTexture@8 referenced in function "public: void __thiscall GLTexture::Use(void)" (?Use@GLTexture@@QAEXXZ) GLTexture.obj Error 11 error...
1
by: Jonas Schneider | last post by:
Heya, donīt know if you know BOINC: itīs a system for distributed computing, therefore distributing work to many computers and creating a little super-computer, see also their homepage:...
1
by: eraserwars | last post by:
I have been googeling every possible solution, but I cannot seem to fix LNK2019. My code is below, but I just cannot understand how anything related to LNK2019 from Microsoft's help center applies...
2
by: hjazz | last post by:
Hi all, I'm new to VS, and I'm using Visual Studio .NET 2003. I'm trying to write a program which uses pcap libraries. However, I keep getting the following errors: error LNK2019: unresolved...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
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...

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.