From mboxrd@z Thu Jan 1 00:00:00 1970 From: Brian Gough To: "Sun-Gi Hong" Cc: gsl-discuss@sources.redhat.com Subject: Re: [Q] compilation error in header files of gsl 0.9 Date: Wed, 19 Dec 2001 13:20:00 -0000 Message-id: <15198.63548.617833.732079@debian> References: <001c01c1150f$fac21280$ad96f88f@sghong> X-SW-Source: 2001/msg00331.html Thanks for the bug report. I'll look into it. I have cc'ed this message to gsl-discuss in case anyone else has found or solved the same problems. > Dear Brian Gough, > > Hello. I'm now trying to install gsl 0.9-0 on msvc++ environment. But there're some problems in compiling cpp files with gsl 0.9 header files. > Of course, I got library files through compiling gsl.dsw and bin files passed the test. > > Examples of code is as follows: > > /* File name : main.cpp */ > > // just add libraries > #pragma comment (lib, "libgsl") > #pragma comment (lib, "libgslcblas") > > #include > #include > > void main() > { > gsl_vector *a; > a = gsl_vector_alloc(2); > } > > Then, a lot of warning messages appear as follows: > > c:\program files\microsoft visual studio\vc98\include\gsl\gsl_vector_long_double.h(90) : warning C4190: '' has C-linkage specified, but returns UDT 'gsl_vector_long_double_const_view' which is incompatible with C > c:\program files\microsoft visual studio\vc98\include\gsl\gsl_vector_long_double.h(56) : see declaration of 'gsl_vector_long_double_const_view' > c:\program files\microsoft visual studio\vc98\include\gsl\gsl_vector_long_double.h(95) : warning C4190: '' has C-linkage specified, but returns UDT 'gsl_vector_long_double_const_view' which is incompatible with C > c:\program files\microsoft visual studio\vc98\include\gsl\gsl_vector_long_double.h(56) : see declaration of 'gsl_vector_long_double_const_view' .... > > In addition, the written code under gsl-0.8 cannot be compiled. (In the code, I just used gsl_vector, gsl_matrix, and linear algebra algorithms....) > > So I try to install the gsl-0.9 on linux, however rpm package cannot be installed with message "bjg does not exist.. blah blah..". With tar ball, there also exist error. > > Please help me and let me know what I've missed. I just want to install gsl-0.9 on msvc++ environment properly. > > Thank you in advance and I'm looking forward to hearing you soon. > > Sincerely yours > > Sun-Gi Hong > > Dept. of EE, > KAIST > Korea > > E-mail: sghong@odyssey.kaist.ac.kr > >