This is the mail archive of the
gsl-discuss@sources.redhat.com
mailing list for the GSL project.
gsl/visual C++
- To: "'gsl-discuss at sources dot redhat dot com'" <gsl-discuss at sources dot redhat dot com>
- Subject: gsl/visual C++
- From: "KAINTH, Dherminder, Group Risk" <Dherminder dot Kainth at rbos dot com>
- Date: Fri, 22 Jun 2001 09:19:50 +0100
Hi,
I have downloaded the Visual C++ version of the GSL(Version 0.8). The
workspaces compile and I have generated the libgsl and libgslcblas files.
The tests also run fine.
However when I set up a new project (including the appropriate libraries -
libgsl/libgslcblas) with access to the appropriate header files - in
particular the config.h file in the msvc directory I get linker errors - in
particular I have:
"
Linking...
MSVCRT.lib(MSVCRT.dll) : error LNK2005: _free already defined in
LIBC.lib(free.obj)
MSVCRT.lib(MSVCRT.dll) : error LNK2005: _malloc already defined in
LIBC.lib(malloc.obj)
MSVCRT.lib(MSVCRT.dll) : error LNK2005: _abort already defined in
LIBC.lib(abort.obj)
LINK : warning LNK4098: defaultlib "MSVCRT" conflicts with use of other
libs; use /NODEFAULTLIB:library
Release/gsl_1DRootFind.exe : fatal error LNK1169: one or more multiply
defined symbols found
Error executing link.exe.
gsl_1DRootFind.exe - 4 error(s), 1 warning(s)
"
This was generated when I attempted to use the example code in the
postscript documentation for the solution of a quadratic equation in chapter
30.
I imagine that this is due to the project settings/extern "C"(?)
declarations... however the differences in the files is not obvious. Can
anyone shed some light on this please ?
Dr Dherminder Kainth