Library file redefinition error
-
hi iam using two different third party library in my application, that two library using one structure with same name("_Bolb"). if i try to include two library header files in my application iam getting struct redefinition error, but i have to use this two library in my application, i tried this by keep one lib headerfile under my own namespace and another headerfile in with out namespace, eg., namespace myspace{first.h}, myspace::Cfirst obj; if i try to access the library iam getting linker error unresolve external symbol myspace::Cfirst @$%^&$ " like this, how can i go around this problem, can any help me thanks and regards
-
hi iam using two different third party library in my application, that two library using one structure with same name("_Bolb"). if i try to include two library header files in my application iam getting struct redefinition error, but i have to use this two library in my application, i tried this by keep one lib headerfile under my own namespace and another headerfile in with out namespace, eg., namespace myspace{first.h}, myspace::Cfirst obj; if i try to access the library iam getting linker error unresolve external symbol myspace::Cfirst @$%^&$ " like this, how can i go around this problem, can any help me thanks and regards
-
Well, in that case you may have to recompile the libraries. You may either change the structure names, or put the libraries in different namespaces.
i dont have control on library files then how can i compile or change the struct name the library, i should have to do some thing in my application, like wraper class,or proxy but iam not sure, can any one help in this case
-
hi iam using two different third party library in my application, that two library using one structure with same name("_Bolb"). if i try to include two library header files in my application iam getting struct redefinition error, but i have to use this two library in my application, i tried this by keep one lib headerfile under my own namespace and another headerfile in with out namespace, eg., namespace myspace{first.h}, myspace::Cfirst obj; if i try to access the library iam getting linker error unresolve external symbol myspace::Cfirst @$%^&$ " like this, how can i go around this problem, can any help me thanks and regards
-
That is just shutting up the linker, who is rightly reporting a problem.
Though I speak with the tongues of men and of angels, and have not money, I am become as a sounding brass, or a tinkling cymbal.
George Orwell, "Keep the Aspidistra Flying", Opening words