2010-01-05 7 views
0

J'ai visual studio 2008, je veux intégrer la bibliothèque GSL dans mon projet, veuillez me donner quelques lignes directrices afin que je puisse le rendre possible.GSL-GNU dans Visual studio

J'ai ajouté la bibliothèque GSL mais l'erreur suivante est venue.

Error 1 error LNK2028: unresolved token (0A000010) "extern "C" void __cdecl gsl_matrix_set(struct gsl_matrix *,unsigned int,unsigned int,double)" ([email protected]@[email protected]@[email protected]) referenced in function "int __cdecl main(void)" ([email protected]@$$HYAHXZ) 

Error 2 error LNK2028: unresolved token (0A000011) "extern "C" struct gsl_matrix * __cdecl gsl_matrix_alloc(unsigned int,unsigned int)" ([email protected]@[email protected]@[email protected]) referenced in function "int __cdecl main(void)" ([email protected]@$$HYAHXZ)  

Error 3 error LNK2028: unresolved token (0A000014) "extern "C" double __cdecl gsl_matrix_get(struct gsl_matrix const *,unsigned int,unsigned int)" ([email protected]@[email protected]@[email protected]) referenced in function "int __cdecl main(void)" ([email protected]@$$HYAHXZ) 

Error 4 error LNK2019: unresolved external symbol "extern "C" double __cdecl gsl_matrix_get(struct gsl_matrix const *,unsigned int,unsigned int)" ([email protected]@[email protected]@[email protected]) referenced in function "int __cdecl main(void)" ([email protected]@$$HYAHXZ)  

Error 5 error LNK2019: unresolved external symbol "extern "C" void __cdecl gsl_matrix_set(struct gsl_matrix *,unsigned int,unsigned int,double)" ([email protected]@[email protected]@[email protected]) referenced in function "int __cdecl main(void)" ([email protected]@$$HYAHXZ) 

Répondre

4

La bibliothèque scientifique Orignal GNU n'a pas été destiné à être construit par quoi que ce soit d'autre que gcc, comme vous pouvez le voir dans leur section Supported Platforms. Jetez un oeil here pour une version qui devrait construire avec Visual Studio.

1
 

    An alternative GSL with Intel C/C++ on MS Visual Studio 2010 can be found at: 
    http://xtechnotes.blogspot.com.au/2012/07/gslwintel.html 
    https://sites.google.com/site/gslwintel/home