public inbox for pthreads-win32@sourceware.org
 help / color / mirror / Atom feed
* Building with MSVC
@ 1999-10-27  2:54 Erik Hensema
  1999-10-27  3:10 ` Ross Johnson
  0 siblings, 1 reply; 2+ messages in thread
From: Erik Hensema @ 1999-10-27  2:54 UTC (permalink / raw)
  To: 'Pthreads-win32'

Hi,

I'm new to MSVC 6.0, and I'm trying to build pthread.dll with cl and nmake.
Compiling is no problem, but linking fails with and undefined reference to
_beginthreadex and _endthreadex. According to the MSVC documentation, these
functions should be in msvcrt.lib and libcmt.lib, however, linking with /MD
or /MT doesn' work.

Any clue?

I've created this makefile:

OBJ=attr.obj cancel.obj cleanup.obj condvar.obj create.obj dll.obj errno.obj
\
        exit.obj fork.obj global.obj misc.obj mutex.obj private.obj
rwlock.obj \
        sched.obj semaphore.obj signal.obj sync.obj tsd.obj

OPT=/I. /c /GD

all: pthread.dll

clean:
        del *.dll *.obj

pthread.dll: $(OBJ)
        cl /Fepthread.dll /LD /MT $(OBJ) /link /def:pthread.def

attr.obj: attr.c
        cl $(OPT) attr.c
[...]

-- 
Erik Hensema
Work: erik.hensema@group2000.nl
Home: erik@hensema.xs4all.nl

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

end of thread, other threads:[~1999-10-27  3:10 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-10-27  2:54 Building with MSVC Erik Hensema
1999-10-27  3:10 ` Ross Johnson

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