473,466 Members | 1,336 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

unresolved symbols

3 New Member
when I am porting my project from Vc6 to vc10 i am getting the following linker errors .actully I am using opencv library for this project .Can any body help me to resolve this problem.


------ Build started: Project: Personal_Authenticationsystem1mar11, Configuration: Debug Win32 ------
1>Build started 3/14/2011 10:02:13 AM.
1>InitializeBuildStatus:
1> Touching "Debug\Personal_Authenticationsystem1mar11.unsucce ssfulbuild".
1>ClCompile:
1> All outputs are up-to-date.
1> Image.cpp
1>f:\vcprojects\personal_authenticationsystem1mar1 1\image.cpp(216): warning C4244: 'initializing' : conversion from 'double' to 'int', possible loss of data
1>f:\vcprojects\personal_authenticationsystem1mar1 1\image.cpp(266): warning C4244: 'initializing' : conversion from 'double' to 'int', possible loss of data
1>f:\vcprojects\personal_authenticationsystem1mar1 1\image.cpp(368): warning C4244: 'initializing' : conversion from 'double' to 'int', possible loss of data
1>f:\vcprojects\personal_authenticationsystem1mar1 1\image.cpp(558): warning C4244: '=' : conversion from 'float' to 'int', possible loss of data
1>f:\vcprojects\personal_authenticationsystem1mar1 1\image.cpp(562): warning C4244: '=' : conversion from 'float' to 'int', possible loss of data
1>f:\vcprojects\personal_authenticationsystem1mar1 1\image.cpp(600): warning C4244: '=' : conversion from 'float' to 'int', possible loss of data
1>f:\vcprojects\personal_authenticationsystem1mar1 1\image.cpp(604): warning C4244: '=' : conversion from 'float' to 'int', possible loss of data
1>f:\vcprojects\personal_authenticationsystem1mar1 1\image.cpp(647): warning C4244: '=' : conversion from 'float' to 'int', possible loss of data
1>f:\vcprojects\personal_authenticationsystem1mar1 1\image.cpp(651): warning C4244: '=' : conversion from 'float' to 'int', possible loss of data
1>f:\vcprojects\personal_authenticationsystem1mar1 1\image.cpp(688): warning C4244: '=' : conversion from 'float' to 'int', possible loss of data
1>f:\vcprojects\personal_authenticationsystem1mar1 1\image.cpp(692): warning C4244: '=' : conversion from 'float' to 'int', possible loss of data
1>f:\vcprojects\personal_authenticationsystem1mar1 1\image.cpp(753): warning C4244: '=' : conversion from 'float' to 'int', possible loss of data
1>f:\vcprojects\personal_authenticationsystem1mar1 1\image.cpp(757): warning C4244: '=' : conversion from 'float' to 'int', possible loss of data
1>f:\vcprojects\personal_authenticationsystem1mar1 1\image.cpp(807): warning C4244: '=' : conversion from 'float' to 'int', possible loss of data
1>f:\vcprojects\personal_authenticationsystem1mar1 1\image.cpp(811): warning C4244: '=' : conversion from 'float' to 'int', possible loss of data
1>f:\vcprojects\personal_authenticationsystem1mar1 1\image.cpp(828): warning C4244: '=' : conversion from 'float' to 'int', possible loss of data
1>f:\vcprojects\personal_authenticationsystem1mar1 1\image.cpp(832): warning C4244: '=' : conversion from 'float' to 'int', possible loss of data
1>f:\vcprojects\personal_authenticationsystem1mar1 1\image.cpp(856): warning C4244: '=' : conversion from 'float' to 'int', possible loss of data
1>f:\vcprojects\personal_authenticationsystem1mar1 1\image.cpp(860): warning C4244: '=' : conversion from 'float' to 'int', possible loss of data
1>f:\vcprojects\personal_authenticationsystem1mar1 1\image.cpp(878): warning C4244: '=' : conversion from 'float' to 'int', possible loss of data
1>f:\vcprojects\personal_authenticationsystem1mar1 1\image.cpp(882): warning C4244: '=' : conversion from 'float' to 'int', possible loss of data
1>f:\vcprojects\personal_authenticationsystem1mar1 1\image.cpp(1122): warning C4244: 'initializing' : conversion from 'double' to 'int', possible loss of data
1>f:\vcprojects\personal_authenticationsystem1mar1 1\image.cpp(1199): warning C4244: 'initializing' : conversion from 'double' to 'int', possible loss of data
1>f:\vcprojects\personal_authenticationsystem1mar1 1\image.cpp(1200): warning C4244: 'initializing' : conversion from 'double' to 'int', possible loss of data
1>f:\vcprojects\personal_authenticationsystem1mar1 1\image.cpp(1240): warning C4244: 'initializing' : conversion from 'double' to 'int', possible loss of data
1>f:\vcprojects\personal_authenticationsystem1mar1 1\image.cpp(1241): warning C4244: 'initializing' : conversion from 'double' to 'int', possible loss of data
1>f:\vcprojects\personal_authenticationsystem1mar1 1\image.cpp(1800): warning C4244: '=' : conversion from 'double' to 'int', possible loss of data
1>f:\vcprojects\personal_authenticationsystem1mar1 1\image.cpp(1882): warning C4244: '=' : conversion from 'double' to 'int', possible loss of data
1>f:\vcprojects\personal_authenticationsystem1mar1 1\image.cpp(2450): warning C4244: 'initializing' : conversion from 'float' to 'int', possible loss of data
1>f:\vcprojects\personal_authenticationsystem1mar1 1\image.cpp(2451): warning C4244: 'initializing' : conversion from 'float' to 'int', possible loss of data
1>f:\vcprojects\personal_authenticationsystem1mar1 1\image.cpp(2467): warning C4244: 'initializing' : conversion from 'float' to 'int', possible loss of data
1>f:\vcprojects\personal_authenticationsystem1mar1 1\image.cpp(2468): warning C4244: 'initializing' : conversion from 'float' to 'int', possible loss of data
1>f:\vcprojects\personal_authenticationsystem1mar1 1\image.cpp(2519): warning C4244: 'initializing' : conversion from 'float' to 'int', possible loss of data
1>f:\vcprojects\personal_authenticationsystem1mar1 1\image.cpp(2520): warning C4244: 'initializing' : conversion from 'float' to 'int', possible loss of data
1>f:\vcprojects\personal_authenticationsystem1mar1 1\image.cpp(1811): warning C4700: uninitialized local variable 'curr_x' used
1>ResourceCompile:
1> All outputs are up-to-date.
1>ManifestResourceCompile:
1> All outputs are up-to-date.
1>Image.obj : error LNK2019: unresolved external symbol _ijlFree@4 referenced in function "public: int __thiscall Image::LoadFromJPGFile(class ATL::CStringT<char,class StrTraitMFC_DLL<char,class ATL::ChTraitsCRT<char> > >)" (?LoadFromJPGFile@Image@@QAEHV?$CStringT@DV?$StrTr aitMFC_DLL@DV?$ChTraitsCRT@D@ATL@@@@@ATL@@@Z)
1>Image.obj : error LNK2019: unresolved external symbol _ijlRead@8 referenced in function "public: int __thiscall Image::LoadFromJPGFile(class ATL::CStringT<char,class StrTraitMFC_DLL<char,class ATL::ChTraitsCRT<char> > >)" (?LoadFromJPGFile@Image@@QAEHV?$CStringT@DV?$StrTr aitMFC_DLL@DV?$ChTraitsCRT@D@ATL@@@@@ATL@@@Z)
1>Image.obj : error LNK2019: unresolved external symbol _ijlInit@4 referenced in function "public: int __thiscall Image::LoadFromJPGFile(class ATL::CStringT<char,class StrTraitMFC_DLL<char,class ATL::ChTraitsCRT<char> > >)" (?LoadFromJPGFile@Image@@QAEHV?$CStringT@DV?$StrTr aitMFC_DLL@DV?$ChTraitsCRT@D@ATL@@@@@ATL@@@Z)
1>Personal_Authenticationsystem1mar11View.obj : error LNK2019: unresolved external symbol _cvLoadImage referenced in function "public: void __thiscall CPersonal_Authenticationsystem1mar11View::OnFileOp en(void)" (?OnFileOpen@CPersonal_Authenticationsystem1mar11V iew@@QAEXXZ)
1>F:\VCPROJECTS\Personal_Authenticationsystem1mar1 1\Debug\Personal_Authenticationsystem1mar11.exe : fatal error LNK1120: 4 unresolved externals
1>
1>Build FAILED.
1>
1>Time Elapsed 00:00:13.83
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Mar 14 '11 #1
4 4181
Banfa
9,065 Recognized Expert Moderator Expert
An unresolved external is a symbol that you have told the compiler exists in one file but that is not defined in any other file.

The reasons you get an unresolved external may be (but are not limited to)
  • You have forgotten to include a library in you link
  • You have forgotten to include an cpp file in the compile/link (build)
  • You have forgotten to implement a function anywhere
  • A preprocessor symbol has the wrong value cause a chunk of code to not be compiled
  • There is a typo in the name
Mar 14 '11 #2
thotasri
3 New Member
Hi Banfa,

Thanks for your response.Ya its true Now I corrected all the linker errors and the system is working fine but again after running 3 times the following build error is coming i am confusing why this? Actually this projetc is working perfectly in VS 6 .After changing the version to vs2010 all these problems are coming.I am using opencv library in this project.

Thanks in advance


Banfa has responded to your question on Bytes.com:

unresolved symbols

Reminder: please mark select "choose as best answer" for the reply that solves your question.

*****************
This is an automated message, do not reply
Mar 15 '11 #3
thotasri
3 New Member
sorry i forgot to mention error in the reply

fatal error C1083: Cannot open precompiled header file: '.\Debug\WebCamRead.pch': No such file or directory
1>
Mar 15 '11 #4
weaknessforcats
9,208 Recognized Expert Moderator Expert
You got his error by not having precompiled header files.

I suspect you created a Win32 console application but failed to click on "Application Settings" where you can specify that you are not using precompiled headers.

Just go to your project properties and for the "Precompiled header" property just specify "not using precompiled headers". The C1083 will now go away
Mar 15 '11 #5

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

Similar topics

0
by: Jim | last post by:
All, I'm trying to debug a Python GPF while running a script that we've written. After fixing up some of the paths for the Python build and successfully building Python from ActiveState source,...
3
by: Scott Brady Drummonds | last post by:
Hi, everyone, I'm writing a bunch of C++ code that is going to be linked into a program compiled with gcc (version 2.96; I have no option of changing this version). My C++ code compiles and...
5
by: Oliver | last post by:
Hi, I have a problem with a shared library of mine. I compile the *.o files and then generate the .so lib with: cc -shared libjava_vrpn.so *.o When I then run my program I get an error for an...
1
by: Aravind | last post by:
we have two files: 1. rc4.c (defines one function "create_pin()") 2. MyImpl.c(calling the function "create_pin()"),This implements JNI method. 1.When I am trying to create .dll file with one...
4
by: Alfonso Morra | last post by:
Ok, this is a bit of a quick hack. I have a flag set in another file (the default value of the flag is 0. In certain files, access to the flag symbol is not available - I want to know if unresolved...
2
by: Steve Terepin | last post by:
Do I need to include some extra libraries when I use the STL <string> classes ? I've created a new Class Library (.NET) project, added a #include <string> directive to the main .cpp file, and...
0
by: crafuse | last post by:
Hello all, I'm trying to create a mixed DLL using VC++ .NET 2003. Specifically, I have some TAO CORBA .cpp files that I wish to include as native object code in the DLL and some managed classes...
1
by: shubhendutripathi | last post by:
Hi, I have written an EXE which uses getopt call. It gets compiled and linked properly on HPUX machine. But when I try to build the same on NT machine using Microsoft Studio 6.0, it gives...
2
by: =?Utf-8?B?YmFzaA==?= | last post by:
Hello, I am compiling a CPP code using Visual studion .net 2003. I get the following error, despite having windldap.h and wldap32.dll in my include and lib paths. Here is the error. uuid.lib...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
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,...
1
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...
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,...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.