Read and respond to this message at: 
https://sourceforge.net/forum/message.php?msg_id=3681571
By: jds2

The following works for me with the distributed files in GnuWin32 gsl-1.6 using
VC7 or VC8 from the command line:

1. use lib to create import library libgsl.lib from libgsl.def (in
gsl-1.6-1-lib/lib):

     lib /DEF:libgsl.def

2. compile the source with _BOTH_ GSL_DLL and WIN32 defined:

     cl /c /I <path-to-gsl-headers> /DGSL_DLL /DWIN32 test.c

3. link:

     link /LIBPATH:<path-to-libgsl.lib> test.obj libgsl.lib


Proper definition of the import specification requires that both GSL_DLL and
WIN32 be defined when gsl/gsl_types.h is parsed.  This is a trap for VC users
since WIN32 is not among the predefined macros.  We'll look at modifying this
in gl-1.7 so only GSL_DLL is required for VC also.

If this doesn't solve your problem, please continue the conversation.

Thanks again,
Jerry

______________________________________________________________________
You are receiving this email because you elected to monitor this forum.
To stop monitoring this forum, login to SourceForge.net and visit: 
https://sourceforge.net/forum/unmonitor.php?forum_id=74807


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
GnuWin32-Users mailing list
GnuWin32-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gnuwin32-users

Reply via email to