Unresloved External symbols [modified]
-
when do we get this kind of errors................. i got this error ,i declared it in .h file and implemented it in .cpp file,plz kindly help me if any lig or dll required for it............. dsn1 error LNK2019: unresolved external symbol _SQLConfigDataSource@16 referenced in function "public: bool __thiscall DynamicDSN::CreateDSN(class ATL::CStringT > > &)" (?CreateDSN@DynamicDSN@@QAE_NAAV?$CStringT@DV?$StrTraitMFC_DLL@DV?$ChTraitsCRT@D@ATL@@@@@ATL@@@Z) look here plz.the same i build in VC++6.0 and got the same error i have given the lib file as "odbccp32.lib".this is working file,but when came to ,net 2003 i have given the same file as lib but it still give me the same eroor,plz help me................. yes ,chandu.its working fine in VC++ 6 afteradding the lib file ,the same i did in .net 2003 ,it doesn t go fine the above error occurs plz help me..................
-
when do we get this kind of errors................. i got this error ,i declared it in .h file and implemented it in .cpp file,plz kindly help me if any lig or dll required for it............. dsn1 error LNK2019: unresolved external symbol _SQLConfigDataSource@16 referenced in function "public: bool __thiscall DynamicDSN::CreateDSN(class ATL::CStringT > > &)" (?CreateDSN@DynamicDSN@@QAE_NAAV?$CStringT@DV?$StrTraitMFC_DLL@DV?$ChTraitsCRT@D@ATL@@@@@ATL@@@Z) look here plz.the same i build in VC++6.0 and got the same error i have given the lib file as "odbccp32.lib".this is working file,but when came to ,net 2003 i have given the same file as lib but it still give me the same eroor,plz help me................. yes ,chandu.its working fine in VC++ 6 afteradding the lib file ,the same i did in .net 2003 ,it doesn t go fine the above error occurs plz help me..................
-
usually when you use some variable or function, without including the headerfile, where it is defined, you will get such problems. are you facing any?
No, not at all. This is a linker error, meaning that the compilation went ok (so, all required header files were included). But, the linker cannot find a variable. It comes usually because you declared somewhere an extern variable (with the extern keyword) but forgot to define it in a specific cpp file.
Cédric Moonen Software developer
Charting control [v1.2] -
when do we get this kind of errors................. i got this error ,i declared it in .h file and implemented it in .cpp file,plz kindly help me if any lig or dll required for it............. dsn1 error LNK2019: unresolved external symbol _SQLConfigDataSource@16 referenced in function "public: bool __thiscall DynamicDSN::CreateDSN(class ATL::CStringT > > &)" (?CreateDSN@DynamicDSN@@QAE_NAAV?$CStringT@DV?$StrTraitMFC_DLL@DV?$ChTraitsCRT@D@ATL@@@@@ATL@@@Z) look here plz.the same i build in VC++6.0 and got the same error i have given the lib file as "odbccp32.lib".this is working file,but when came to ,net 2003 i have given the same file as lib but it still give me the same eroor,plz help me................. yes ,chandu.its working fine in VC++ 6 afteradding the lib file ,the same i did in .net 2003 ,it doesn t go fine the above error occurs plz help me..................
Check whether you have added the cpp file in the project( take the file view and check the cpp file is under the "Source Files" ).
nave [OpenedFileFinder]
-
when do we get this kind of errors................. i got this error ,i declared it in .h file and implemented it in .cpp file,plz kindly help me if any lig or dll required for it............. dsn1 error LNK2019: unresolved external symbol _SQLConfigDataSource@16 referenced in function "public: bool __thiscall DynamicDSN::CreateDSN(class ATL::CStringT > > &)" (?CreateDSN@DynamicDSN@@QAE_NAAV?$CStringT@DV?$StrTraitMFC_DLL@DV?$ChTraitsCRT@D@ATL@@@@@ATL@@@Z) look here plz.the same i build in VC++6.0 and got the same error i have given the lib file as "odbccp32.lib".this is working file,but when came to ,net 2003 i have given the same file as lib but it still give me the same eroor,plz help me................. yes ,chandu.its working fine in VC++ 6 afteradding the lib file ,the same i did in .net 2003 ,it doesn t go fine the above error occurs plz help me..................