473,396 Members | 1,689 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.

LNK2019 error

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 Studio 2003.
When building a sample program, I get the error mentioned in the title:
LNK2019
Here is a snippet of the error message:

---
main.obj : error LNK2019: unresolved external symbol
"__declspec(dllimport) public: bool __thiscall
IFC20_LONGFORM::SPFwriter::writeSPF(class IFC20_LONGFORM::Model *,class
std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char> > const &)"
(__imp_?writeSPF@SPFwriter@IFC20_LONGFORM@@QAE_NPA VModel@2@ABV?$basic_string@DU?$char_traits@D@std@@ V?$allocator@D@2@@std@@@Z)
referenced in function _main

main.obj : error LNK2019: unresolved external symbol
"__declspec(dllimport) public: class IFC20_LONGFORM::Model * __thiscall
IFC20_LONGFORM::SPFreader::readSPF(class std::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> > const &)"
(__imp_?readSPF@SPFreader@IFC20_LONGFORM@@QAEPAVMo del@2@ABV?$basic_string@DU?$char_traits@D@std@@V?$ allocator@D@2@@std@@@Z)
referenced in function _main

Debug/CSTBTest2_Console.exe : fatal error LNK1120: 2 unresolved
externals
---

What I have found so far on the net wasn't very helpful. I have read
somewhere, that the reason of the error could have something to do with
different versions of VC (since the libraries were programmed in 2000,
they were probably built with VC5 or 6, I dont know if that is a
problem)

Does anyone know what I can do about this error?

thanks alot in advance!

Nov 17 '05 #1
2 1556
Ron
Since you stated that the libraries were created in 2000, I would say
that the problem is incompatability with VS2003. The only way that I
know of to get around this is to recompile the libraries or purchase
..Net versions.

Ron

Nov 17 '05 #2
Thanks a lot. I ve received kind of the same reply from someone else,
too, so chances are that the incompatibility is indeed the problem.
The solution you suggest makes of course sense, since it doesnt seem
that they have newer versions of the library, I have emailed the
programmers to ask for the sources, so I can recompile (it is strange
that the sources dont seem to be available at the site even though the
libraries are supposed to be "open source")

thanks again, if you can come up with other solutions, i d be happy to
know.

Haroon

Nov 17 '05 #3

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

Similar topics

3
by: YAN KANG / SU | last post by:
Hi, All I am migrating to Studio .NET 2003 from Studio 6.0 and Studio .NET 2002. When I compiled my code, which is compilable both in VC++ 6.0 and Studio .NET 2002, I have an error LNK2019 as the...
3
by: Chris B | last post by:
Im trying out VS.NET 2003 by trying to make my own single linked list library. Im trying to use templates but keep getting LNK2019 errors. Right now I slimmed down my project to just the main.cpp,...
2
by: rangalo | last post by:
Hi All, I have succeeded in compiling a massive project, originally from vc6 to VS .Net 2005. Now, while linking I am having loads of linker errors with the above code. LNK20019 and LNK2001....
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: 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...
1
by: eraserwars | last post by:
My compiler keeps saying LNK2019, and my teacher says to look for spelling error. He says that most likely what is happening is that a spelling error is messing my program up. I searched, and I did...
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...
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: 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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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
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.