tbrowder
14th August 2008, 14:41
We are using Qt and the Loki library with a program and cannot get a succesfule link with MS Visual C++ 2005. There is no problem, however, linking and executing the program under Linux.
We use many QT functions and classes, but only the SafeFormat functions from Loki. The compiler error message is:
1>x.obj : error LNK2019: unresolved external symbol
1>"void __cdecl Loki::_write(class std::basic_ostream<char,struct
1>std::char_traits<char> > &,char const *,char const *)"
1>(?_write@Loki@@YAXAAV?$basic_ostream@DU?$char_trai ts@D@std@@@std@@PBD1
1>@Z) referenced in function "private: void __thiscall
1>Loki::PrintfState<class std::basic_ostream<char,struct
1>std::char_traits<char> > &,char>::Write(char const *,char const *)"
1>(?Write@?$PrintfState@AAV?$basic_ostream@DU?$char_ traits@D@std@@@std@@
1>D@Loki@@AAEXPBD0@Z)
1>x.obj : error LNK2019: unresolved external symbol
1>"void __cdecl Loki::_write(struct _iobuf *,char const *,char const *)"
1>(?_write@Loki@@YAXPAU_iobuf@@PBD1@Z) referenced in function "private:
1>void __thiscall Loki::PrintfState<struct _iobuf *,char>::Write(char
1>const *,char const *)"
1>(?Write@?$PrintfState@PAU_iobuf@@D@Loki@@AAEXPBD0@ Z)
We have double checked our paths for includes and finding
the loki.lib.
We have also tried adding the Loki source file and header for SafeFormat to our program solution but get the same errors.
We would like to use loki.lib under Windows but can't get past this.
Thanks for any help.
We use many QT functions and classes, but only the SafeFormat functions from Loki. The compiler error message is:
1>x.obj : error LNK2019: unresolved external symbol
1>"void __cdecl Loki::_write(class std::basic_ostream<char,struct
1>std::char_traits<char> > &,char const *,char const *)"
1>(?_write@Loki@@YAXAAV?$basic_ostream@DU?$char_trai ts@D@std@@@std@@PBD1
1>@Z) referenced in function "private: void __thiscall
1>Loki::PrintfState<class std::basic_ostream<char,struct
1>std::char_traits<char> > &,char>::Write(char const *,char const *)"
1>(?Write@?$PrintfState@AAV?$basic_ostream@DU?$char_ traits@D@std@@@std@@
1>D@Loki@@AAEXPBD0@Z)
1>x.obj : error LNK2019: unresolved external symbol
1>"void __cdecl Loki::_write(struct _iobuf *,char const *,char const *)"
1>(?_write@Loki@@YAXPAU_iobuf@@PBD1@Z) referenced in function "private:
1>void __thiscall Loki::PrintfState<struct _iobuf *,char>::Write(char
1>const *,char const *)"
1>(?Write@?$PrintfState@PAU_iobuf@@D@Loki@@AAEXPBD0@ Z)
We have double checked our paths for includes and finding
the loki.lib.
We have also tried adding the Loki source file and header for SafeFormat to our program solution but get the same errors.
We would like to use loki.lib under Windows but can't get past this.
Thanks for any help.