This is the mail archive of the
gsl-discuss@sources.redhat.com
mailing list for the GSL project.
Re: [Q] compilation error in header files of gsl 0.9
- To: "Sun-Gi Hong" <sghong at mail dot robotics dot co dot kr>
- Subject: Re: [Q] compilation error in header files of gsl 0.9
- From: Brian Gough <bjg at network-theory dot co dot uk>
- Date: Wed, 25 Jul 2001 17:47:56 +0100 (BST)
- CC: gsl-discuss at sources dot redhat dot com
- References: <001c01c1150f$fac21280$ad96f88f@sghong>
- Reply-To: gsl-discuss at sources dot redhat dot com
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 <gsl/gsl_math.h>
> #include <gsl/gsl_vector.h>
>
> 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: '<Unknown>' 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: '<Unknown>' 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
>
>