Click here to Skip to main content
15,896,118 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I used CBitmapDC in my aplication, but I have problem with linking.

This is, what Linker throw:

1>------ Build started: Project: test, Configuration: Debug Win32 ------<br />
1>Compiling...<br />
1>test.cpp<br />
1> WINVER not defined. Defaulting to 0x0502 (Windows Server 2003)<br />
1>Compiling manifest to resources...<br />
1>Linking...<br />
1>test.obj : error LNK2019: unresolved external symbol "public: virtual __thiscall CBitmapDC::~CBitmapDC(void)" (??1CBitmapDC@@UAE@XZ) referenced in function _main<br />
1>test.obj : error LNK2019: unresolved external symbol "public: __thiscall CBitmapDC::CBitmapDC(int,int,class CDC *,unsigned long)" (??0CBitmapDC@@QAE@HHPAVCDC@@K@Z) referenced in function _main<br />
1>.\Debug/test.exe : fatal error LNK1120: 2 unresolved externals<br />
1>Build log was saved at "file://c:\Documents and Settings\kspacja\Moje dokumenty\Programowanie\C++\htmlToImage\Debug\BuildLog.htm"<br />
1>test - 3 error(s), 0 warning(s)<br />
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========


What's happend and what I have to do?

Thanks
Posted

Are you sure you've done a #include "BitmapDC.h". And have you included the implementation file (CBitmapDC.cpp) as well to your project?

Also, when you have a query related to a specific article, post it at the message board located at the bottom of the article!
 
Share this answer
 
v2
Those are linker errors.
Did you code yourself the CBitmapDC class or is it part of an external library (did you link with such library?)?
:)
 
Share this answer
 
v3

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900