Bonjour,
Je suis un peu en galère....![]()
J'ai un projet visual 2003 qui utilise une librarie de mathematic (newmat) pour faire de calcul de matrice et autre.
Le projet 2003 fonctionne correctement (a vrai dire je ne sais pas trop comment), il arrive a trouver la librairie et a linker correctement.
Je veux porter mon projet sur visual 2005, mais le probleme c'est que le projet ne trouve plus la librarie newmat au moment du link. Il trouve correctement les .h mais apparamment pas la libraire.
J'ai essayé plusieurs solutions :
- ajouter newmat.lib dans les "additionnal dependencies" du projet
- utiliser les #pragma(lib, chemin de la lib)
- mettre le chemin de la lib dans les chemin de visual studio (tools/option/VC directories)
Mais sans reussite.
je voudrai reussir a linker proprement avec cette librairie. Comment dois-je faire ?
Merci pour votre aide.
PS : Voila les traces de build
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14 World.obj : warning LNK4248: unresolved typeref token (0100001E) for 'NEWMAT.MatrixColX'; image may not run Toolbox.obj : warning LNK4248: unresolved typeref token (01000015) for 'NEWMAT.MatrixColX'; image may not run PedestrianModel.obj : warning LNK4248: unresolved typeref token (0100001E) for 'NEWMAT.MatrixColX'; image may not run Car.obj : warning LNK4248: unresolved typeref token (0100001B) for 'NEWMAT.MatrixColX'; image may not run World.obj : warning LNK4248: unresolved typeref token (0100001F) for 'NEWMAT.MatrixRowCol'; image may not run Toolbox.obj : warning LNK4248: unresolved typeref token (01000016) for 'NEWMAT.MatrixRowCol'; image may not run PedestrianModel.obj : warning LNK4248: unresolved typeref token (0100001F) for 'NEWMAT.MatrixRowCol'; image may not run Car.obj : warning LNK4248: unresolved typeref token (0100001C) for 'NEWMAT.MatrixRowCol'; image may not run newmat11.lib(newmatnl.obj) : error LNK2001: unresolved external symbol "class std::basic_ostream<char,struct std::char_traits<char> > std::cout" (?cout@std@@3V?$basic_ostream@DU?$char_traits@D@std@@@1@A) newmat11.lib(myexcept.obj) : error LNK2001: unresolved external symbol "class std::basic_ostream<char,struct std::char_traits<char> > std::cout" (?cout@std@@3V?$basic_ostream@DU?$char_traits@D@std@@@1@A) newmat11.lib(newmatnl.obj) : error LNK2001: unresolved external symbol "private: static int std::locale::id::_Id_cnt" (?_Id_cnt@id@locale@std@@0HA) newmat11.lib(newmatnl.obj) : error LNK2001: unresolved external symbol "struct std::_DebugHeapTag_t const std::_DebugHeapTag" (?_DebugHeapTag@std@@3U_DebugHeapTag_t@1@B) newmat11.lib(newmatnl.obj) : error LNK2019: unresolved external symbol "public: void __thiscall std::_String_base::_Xran(void)const " (?_Xran@_String_base@std@@QBEXXZ) referenced in function "public: class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > & __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::assign(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,unsigned int,unsigned int)" (?assign@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV12@ABV12@II@Z) newmat11.lib(newmatnl.obj) : error LNK2019: unresolved external symbol "public: void __thiscall std::_String_base::_Xlen(void)const " (?_Xlen@_String_base@std@@QBEXXZ) referenced in function "protected: bool __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::_Grow(unsigned int,bool)" (?_Grow@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@IAE_NI_N@Z)
Partager