can any one help me ??

M

Manjunath.M

Hi,

In my project I got this error when adding another project from
internet to mine.
I have written a Project in C which creates an exe file. I want to
include this Project into another Project. When I try to add I got
this error :

" unresolved external symbol error "

How to overcome this error and add the other Project ?

Thanks in advance
 
S

Sarath

Hi,

In my project I got this error when adding another project from
internet to mine.
I have written a Project in C which creates an exe file. I want to
include this Project into another Project. When I try to add I got
this error :

" unresolved external symbol error "

How to overcome this error and add the other Project ?

Thanks in advance

The compiler try to say that you have declared something and it can't
be resolved from the modules it created. might be some problems with
Lib files and surely windows related things are out of scope of this
topic.
 
M

Manjunath.M

The compiler try to say that you have declared something and it can't
be resolved from the modules it created. might be some problems with
Lib files and surely windows related things are out of scope of this
topic.


In the project Which I am including is not having any additional
dependencies.
how do i know which lib files need to be add.

Thanks,
Manjunath.M
 
I

Ian Collins

Manjunath.M said:
In the project Which I am including is not having any additional
dependencies.
how do i know which lib files need to be add.
Read the documentation that came with the package you are using, if it
is any good, it will list its dependencies.
 
M

Manjunath.M

Read the documentation that came with the package you are using, if it
is any good, it will list its dependencies.

Thanks Ian Collins,

The package Which I got is not having any information regarding the
dependencies.
Is there any other way to find dependencies?

Thanks,
Manjunath.M
 
I

Ian Collins

Manjunath.M said:
Please trim signatures.

Thanks Ian Collins,

The package Which I got is not having any information regarding the
dependencies.
Is there any other way to find dependencies?
Well it looks like you have found out the hard way, but he application
failing to link and the linker presenting you with a list of unresolved
symbols.

Try looking for include files that might provide a hint, your code
appears to have compiled, so you must have all the required headers and
possibly the libraries that go with them.

If all else fails, google for the symbol names.
 
?

=?iso-8859-1?q?Erik_Wikstr=F6m?=

Hi,

In my project I got this error when adding another project from
internet to mine.
I have written a Project in C which creates an exe file. I want to
include this Project into another Project. When I try to add I got
this error :

" unresolved external symbol error "

Is there any more to this error message, like what symbol was left
unresolved, or perhaps where it was referred to? Something like "error
LNK2019: unresolved external symbol "int t3" (?t3@@3HA) referenced in
function _main"?
 
M

Manjunath.M

Is there any more to this error message, like what symbol was left
unresolved, or perhaps where it was referred to? Something like "error
LNK2019: unresolved external symbol "int t3" (?t3@@3HA) referenced in
function _main"?

Here is the error

error LNK2019: unresolved external symbol "int __cdecl
CheckForNtEnumarateKeys(char *)" (?CheckForNtEnumarateKeys@@YAHPAD@Z)
referenced in function "int __cdecl
GetApplicationsLoadingFromKey(struct HWND__ *,unsigned int,char
*,unsigned int)" (?
GetApplicationsLoadingFromKey@@YAHPAUHWND__@@IPADI@Z)



Thanks,
Manjunath.M
 
?

=?iso-8859-1?q?Erik_Wikstr=F6m?=

Here is the error

error LNK2019: unresolved external symbol "int __cdecl
CheckForNtEnumarateKeys(char *)" (?CheckForNtEnumarateKeys@@YAHPAD@Z)
referenced in function "int __cdecl
GetApplicationsLoadingFromKey(struct HWND__ *,unsigned int,char
*,unsigned int)" (?
GetApplicationsLoadingFromKey@@YAHPAUHWND__@@IPADI@Z)

And there it is: the function CheckForNtEnumarateKeys(char *), which
is called from GetApplicationsLoadingFromKey(struct HWND__ *,unsigned
int,char *,unsigned int) can not be found in any of the libraries
provided. These looks kind of like calls to the win32 API or such. I'm
not to familiar with working with such applications and I don't know
how to set up VS to include the correct libraries, but maybe someone
else does.
 
D

Dave Rahardja

And there it is: the function CheckForNtEnumarateKeys(char *), which
is called from GetApplicationsLoadingFromKey(struct HWND__ *,unsigned
int,char *,unsigned int) can not be found in any of the libraries
provided. These looks kind of like calls to the win32 API or such. I'm
not to familiar with working with such applications and I don't know
how to set up VS to include the correct libraries, but maybe someone
else does.

Hopefully someone in a Microsoft newsgroup.

-dr
 
P

Puppet_Sock

Generally speaking, when you are dealing with Visual Studio
or Micrsoft products, you want one of the Microsoft news
groups. Folks over there will be much more knowledgeable
about the names of things in libraries, how to find them,
how to use them, etc.

Here is the error

error LNK2019: unresolved external symbol "int __cdecl
CheckForNtEnumarateKeys(char *)" (?CheckForNtEnumarateKeys@@YAHPAD@Z)
referenced in function "int __cdecl
GetApplicationsLoadingFromKey(struct HWND__ *,unsigned int,char
*,unsigned int)" (?
GetApplicationsLoadingFromKey@@YAHPAUHWND__@@IPADI@Z)

You may not be including the right library.
You may not be including the right header file.
Or you may be loading the wrong combination of
header files, or setting the wrong compiler flags.
You may have mis-spelled the name of the function.
You may have the wrong argument list for the function.
You may not have referred to the right namespace.

Pretty much all of these will require some kind of
documentation for the lib you expect to find this
function in. At least look in the header file that
goes with the lib and see if you can find the function
CheckForNtEnumarateKeys or something with a very
similar name. For example, maybe it should be
CheckForNTEnumarateKeys (notice the different case
for NT instead of Nt) but that's just a wild guess.

If you don't have the header file, you probably can't
use the library at all anyway.
Socks
 
J

Jacek Dziedzic

Manjunath.M said:
Here is the error

error LNK2019: unresolved external symbol "int __cdecl
CheckForNtEnumarateKeys(char *)" (?CheckForNtEnumarateKeys@@YAHPAD@Z)
referenced in function "int __cdecl
GetApplicationsLoadingFromKey(struct HWND__ *,unsigned int,char
*,unsigned int)" (?
GetApplicationsLoadingFromKey@@YAHPAUHWND__@@IPADI@Z)

How about "Enumarate" != "Enumerate"?

HTH,
- J.
 
J

John Harrison

And there it is: the function CheckForNtEnumarateKeys(char *), which
is called from GetApplicationsLoadingFromKey(struct HWND__ *,unsigned
int,char *,unsigned int) can not be found in any of the libraries
provided. These looks kind of like calls to the win32 API or such. I'm
not to familiar with working with such applications and I don't know
how to set up VS to include the correct libraries, but maybe someone
else does.

Or maybe the OP just needs to spell enumerate correctly.

john
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,022
Latest member
MaybelleMa

Latest Threads

Top