From: "Jiri Hajek" <jirik@ucw.cz>
To: <gsl-discuss@sources.redhat.com>
Subject: RE: gsl/visual C++
Date: Wed, 19 Dec 2001 13:20:00 -0000 [thread overview]
Message-ID: <NEBBLKEPNJBCBMDCIMCKAEJBCDAA.jirik@ucw.cz> (raw)
In-Reply-To: <F370715B4543D211B9E00008C7A4A28806978DC6@lonxpr0212.lon.grnw.com>
Hi,
I've had the same problem and if I remember it well, it is a problem of
different settings of MSVCRT in the library and in your project
(single/multithreaded, ...). When you press F1 on the line with the warning,
you get help that should guide you.
Jiri
P.S.: The way to the setting is:
- Project settings
- C/C++
- Code generation
- Use run-time library
> -----Original Message-----
> From: gsl-discuss-owner@sources.redhat.com
> [ mailto:gsl-discuss-owner@sources.redhat.com]On Behalf Of KAINTH,
> Dherminder, Group Risk
> Sent: Friday, June 22, 2001 9:20 AM
> To: 'gsl-discuss@sources.redhat.com'
> Subject: gsl/visual C++
>
>
> 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
>
next prev parent reply other threads:[~2001-12-19 13:20 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-12-19 13:20 KAINTH, Dherminder, Group Risk
2001-12-19 13:20 ` Brian Gough
2001-12-19 13:20 ` Jiri Hajek [this message]
2001-12-19 13:20 Dherminder Kainth
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=NEBBLKEPNJBCBMDCIMCKAEJBCDAA.jirik@ucw.cz \
--to=jirik@ucw.cz \
--cc=gsl-discuss@sources.redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).