-
[VC++] Multi Projet
Bonjour j'utilise une solution sous visual C++ 2008 qui contient 2 projets.
Le premier projet est compilé en C et me donne un .lib que je réusitilise dans le 2ème projet.
Dans les options du 2ème projet,
je mets le chemin du mon .lib dans
linker->general -> Additional librairy directories
ainsi que le nom de mon .lib dans
linker->input->additional dependencies
Malheruesement, lorsque je réutilise une fonction du mon premier projet dans mon deuxième projet, il me dit que la fonction est inconnue.
Avez vous une idée?
Merci.
-
Salut,
En faite, il faut :
- Ajouter les includes du premier projet au second.
- Faire en sorte que le premier projet compile avant le second (comme ca, on est sur que la librairie est disponible). : http://msdn.microsoft.com/fr-fr/libr...(v=vs.90).aspx (dans le cas de v2008).