From: "Margot Anthoni" <Margot.Anthoni@student.kuleuven.ac.be>
Newsgroups: comp.parallel.pvm
Subject: MFC and PVM linking problems
Date: Fri, 21 May 1999 12:24:26 +0200
Organization: KULeuvenNet
Message-Id: <927282022.383085@marvin>
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
Cache-Post-Path: marvin!unknown@tvd-10-67-28-188.tvd.kotnet.kuleuven.ac.be
Xref: ukc comp.parallel.pvm:8413


Hi,

I'm porting a PVM app from linux to Win32. Everything compiles fine if I
make a win32 console application. But now I want a UI around it.
To do this I built a simple MFC, (dynamically linked) single view .exe
Problem is, if I insert the code that does the work, I get Linker errors:

LIBC.lib(crt0dat.obj) : error LNK2005: _exit already defined in
msvcrtd.lib(MSVCRTD.dll)
LIBC.lib(crt0dat.obj) : error LNK2005: __exit already defined in
etc....

If I do a /nodefaultlib:libc as the compiler recommends
i get undefined symbols from libpvm:

libpvm3.lib(lpvmgen.obj) : error LNK2001: unresolved external symbol
__sys_nerr
libpvm3.lib(lpvmgen.obj) : error LNK2001: unresolved external symbol _errno


Anybody have any idea what to do??

thanks
Marc

