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

Error : "error LNK2001: unresolved external symbol"

Hi,

I would really appreciate it of someone could help me. I tried compiling a source code which references header files from another directory on my hard disk (not the default VC++ header files directory). I added this directory name as an extra line in "Tools>Options>Directories..." for include files.

My source code looks like this :

Expand|Select|Wrap|Line Numbers
  1. #include "IGESControl_Reader.hxx"
  2. #include "TColStd_HSequenceOfTransient.hxx"
  3. #include "TopoDS_Shape.hxx"
  4.  
  5. main()
  6. {
  7. IGESControl_Reader myIgesReader;
  8. Standard_Integer nIgesFaces,nTransFaces;
  9.  
  10. myIgesReader.ReadFile ("MyFile.igs");
  11. //loads file MyFile.igs
  12.  
  13. Handle(TColStd_HSequenceOfTransient) myList = myIgesReader.GiveList("iges-faces");
  14.  
  15. //selects all IGES faces in the file and puts them into a list called MyList,
  16.  
  17. nIgesFaces = myList->Length();
  18. nTransFaces = myIgesReader.TransferList(myList);
  19. //translates MyList,
  20.  
  21. cout<<"IGES Faces: "<<nIgesFaces<<" Transferred:"<<nTransFaces<<endl;
  22. TopoDS_Shape sh = myIgesReader.OneShape();
  23.  
  24. //and obtains the results in an Open CASCADE shape.
  25. }

The errors that I get are "error LNK2001: unresolved external symbol "public: __thiscall Handle_TColStd_HSequenceOfTransient::~Handle_TColS td_HSequenceOfTransient(void)" (??1Handle_TColStd_HSequenceOfTransient@@QAE@XZ)"

Any help from anyone will be apreciated.

Thanks a bunch !

-Karthik
Feb 5 '07 #1
1 3240
Banfa
9,065 Expert Mod 8TB
An unresolved external happens when you declare a function or variable but do not define it. Declarations tend to happen in header files and definitions tend to happen in source files.

In this case it appears to be the destructor for Handle_TColStd_HSequenceOfTransient

This suggests that there is another C++ source file that needs to be compiled and linked in the program or that there is a library that the program needs to be linked with.
Feb 6 '07 #2

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

Similar topics

0
by: Cris | last post by:
Hi I´m converting a VC6 Project to VC7 and I´m having the follow problem: error LNK2019: unresolved external symbol "public: class ATL::CStringT<char,class StrTraitMFC<char,class ...
4
by: naveenadevi | last post by:
Hi, I'm trying to use some power management features with windowsx xp and I have visual studio .net 2003 installed. As per documentation of ACPI, you can use the power options by including...
0
by: danip | last post by:
Hi, I converted a VC++ 6.0 dll to VC++ 2003. It's unmanaged. Now when I'm trying to implement calling to static method that returns CString I receive the error message above in the Link. What I'm...
0
by: Simon | last post by:
Hi All, I have come across a problem with a bog std MFC app linking to bog std MFC extension dll - both generated by the wizards. The code is set out below. The trouble is with the static...
2
by: Pardeep Kadian | last post by:
Hi , having as issue , which gives errors like this while linking... error LNK2019: unresolved external symbol "public: __thiscall std::ios_base::Init::Init(void)"...
1
by: sharmadeep1980 | last post by:
Hi All, I am facing a very unique problem while compling my project in "Release" build. The project is building in DEBUG mode but giving linking error on Release build. Here is the error:...
0
by: =?Utf-8?B?TWF0ZXVzeiBSYWpjYQ==?= | last post by:
Hi! How can I fix this error? Error 1 error LNK2001: unresolved external symbol "extern "C" long __stdcall SHFlushClipboard(void)" (?SHFlushClipboard@@$$J10YGJXZ) UnmanagedTest.obj Basically...
7
by: JustBeSimple | last post by:
Hi Everyone, I'm having a problem compiling useing the VS2005 .NET I need help to resolve those error, I try to create a new project it doesn't help any suggestion? I got the following errors:...
1
by: suniladhyaru | last post by:
Hi All, Could any one help me to solve this error?? error LNK2001: unresolved external symbol "int __stdcall VerQueryValueA(void * const,char *,void * *,unsigned int *)"...
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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...
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,...

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.