Click here to Skip to main content
15,937,127 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi everybody,

I need help for my project migration from VC 6.0 to VS 2008 professional version. The project compiles and runs in VC 6.0 but when migration in VS 2008, several errors and warning. Here in the following some samples of errors when building and linking. I don't understand the source of problem. Thanks for help


3>Security.lib(Securisation.obj) : error LNK2019: unresolved external symbol "public: __thiscall CString::~CString(void)" (??1CString@@QAE@XZ) referenced in function "public: enum ErrSecu __thiscall CSecurisation::CheckCertificat(char *,char *)" (?CheckCertificat@CSecurisation@@QAE?AW4ErrSecu@@PAD0@Z)<br />
3>Security.lib(GenerationCertificat.obj) : error LNK2001: unresolved external symbol "public: __thiscall CString::~CString(void)" (??1CString@@QAE@XZ)<br />
3>Security.lib(Securisation.obj) : error LNK2019: unresolved external symbol "public: __thiscall CString::CString(class CString const &)" (??0CString@@QAE@ABV0@@Z) referenced in function "public: enum ErrSecu __thiscall CSecurisation::CheckCertificat(char *,char *)" (?CheckCertificat@CSecurisation@@QAE?AW4ErrSecu@@PAD0@Z)<br />
<br />
Posted

Thanks for your reply,

So when you said recompiling the security.lib file, you want to say creating the lib file in vs 2008? or using an other method to update the file in vs 2008?

I have some problem to create the lib file because I haven't the *.cpp files, I have just *.h files.

Your help is welcome, I must finish the migration of the code in the end of this week. :doh:
 
Share this answer
 
It sounds like you're trying to link to a library that isn't going to work in VS2008. Migrating from VC6 should have been done a long time ago, and you've done well to only have linker errors, VC6 allowed so much non standard C++ code.

The only other way around it that I can see, would be to import the VC6 code for the CString class, so you still use the old string class in the new IDE.
 
Share this answer
 
The Linker is missing some library reference, either lib file or directory location; probably for MFC.
 
Share this answer
 
The CString implementation has changed between VC 6.0 and later compilers.
In VC 6.0 CString was just a class, but in later compilers it was templatized to CStringT. So you will need to recompile the Security.lib in VS 2008.
 
Share this answer
 

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