Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Which library am I missing ?

Status
Not open for further replies.

abp

Programmer
Sep 14, 2000
134
0
0
FR
Hi there!!
I am trying to link an application using MS VC++ 6.0 . When I do so i
get
the following errors.

<p>
<font color=red>DXViewer.obj : error LNK2001: unresolved external
symbol &quot;bool __cdecl AddListViewItem(struct HWND__ *,char *,struct
HICON__ *,struct HICON__ *,long)&quot;
(?AddListViewItem@@YA_NPAUHWND__@@PADPAUHICON__@@2J@Z)
DXViewer.obj : error LNK2001: unresolved external symbol &quot;struct
HWND__ * __cdecl SetupListView(struct HWND__ *)&quot;
(?SetupListView@@YAPAUHWND__@@PAU1@@Z)
ToolBar.obj : error LNK2001: unresolved external symbol &quot;struct
HINSTANCE__ * g_hinst&quot; (?g_hinst@@3PAUHINSTANCE__@@A)
</font>
</p>

Which library am I failing to link in here... which contains the code
for
the unresolveds.

Thanks in advance

Anand Pillai
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Mail me at abpillai@excite.com if you want additional help. I dont promise that I can solve your problem, but I will try my best.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 
Hi,
Its possible that it isn't a library you are missing but the PROTOTYPE ( header file ) which contains the function so the compiler generates the wrong caller information STDCALL vs DECLSPEC and therefore it can't find the function with correct signature.

Try recompiling everything and see if you get a warning....

function blort called but not declared.

--
 
Hi tdatgod

Thanks for your reply. But I am sure that it is the library I am missing to link with here. I cannot find the definition of these functions in my code.

Thanks

Anand Pillai ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Mail me at abpillai@excite.com if you want additional help. I dont promise that I can solve your problem, but I will try my best.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 
I am unable to find &quot;AddListViewItem&quot; or &quot;SetupListView&quot; in MSDN. Could this be a 3rd party library?

Chip H.
 

Hi

I found out later that this was indeed from a file that
i forgot to include in the project.

Thanks

Anand Pillai ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Mail me at abpillai@excite.com if you want additional help. I dont promise that I can solve your problem, but I will try my best.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top