public inbox for gsl-discuss@sourceware.org
 help / color / mirror / Atom feed
* Re: [Q] compilation error in header files of gsl 0.9
  2001-12-19 13:20 ` [Q] compilation error in header files of gsl 0.9 Brian Gough
@ 2001-12-19 13:20   ` Brian Gough
  0 siblings, 0 replies; 2+ messages in thread
From: Brian Gough @ 2001-12-19 13:20 UTC (permalink / raw)
  To: Sun-Gi Hong; +Cc: gsl-discuss

Brian Gough writes:
 > > 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

The program needs to be compiled with the following option selected,

  Project Settings, C/C++,Category: Customize, Disable Language Extensions.

Without this option I get the same errors as above.  I will add that
to the notes.

However, I found that if I had compiled the program once with the
wrong setting then changing it had no effect (even after selecting
'Build - Clean').  I had to create a NEW workspace with the correct
setting first, and then it compile it.  Then it worked. Maybe it is
something to do with 'precompiled headers'.

The interface to the matrix/vector view functions has changed between
version 0.8 and 0.9, see the manual for details.

 > > 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.
 > > 

Thanks for reporting that I have uploaded a new rpm file to
sources.redhat.com created as root, so it should install properly.

regards
Brian Gough

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Q] compilation error in header files of gsl 0.9
       [not found] <001c01c1150f$fac21280$ad96f88f@sghong>
@ 2001-12-19 13:20 ` Brian Gough
  2001-12-19 13:20   ` Brian Gough
  0 siblings, 1 reply; 2+ messages in thread
From: Brian Gough @ 2001-12-19 13:20 UTC (permalink / raw)
  To: Sun-Gi Hong; +Cc: gsl-discuss

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
> 
> 

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2001-12-19 13:20 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <001c01c1150f$fac21280$ad96f88f@sghong>
2001-12-19 13:20 ` [Q] compilation error in header files of gsl 0.9 Brian Gough
2001-12-19 13:20   ` Brian Gough

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).