From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30087 invoked by alias); 21 Jan 2005 23:12:25 -0000 Mailing-List: contact pthreads-win32-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: pthreads-win32-owner@sources.redhat.com Received: (qmail 29989 invoked from network); 21 Jan 2005 23:12:19 -0000 Received: from unknown (HELO web52010.mail.yahoo.com) (206.190.39.66) by sourceware.org with SMTP; 21 Jan 2005 23:12:19 -0000 Received: (qmail 63242 invoked by uid 60001); 21 Jan 2005 23:12:19 -0000 Message-ID: <20050121231219.63240.qmail@web52010.mail.yahoo.com> Received: from [137.69.199.247] by web52010.mail.yahoo.com via HTTP; Fri, 21 Jan 2005 15:12:19 PST Date: Fri, 21 Jan 2005 23:12:00 -0000 From: Gary bai Subject: Re: Link error with VS71(.Net 2003): LNK1136, LNK2001 To: pthreads-win32@sources.redhat.com In-Reply-To: <20050121215128.39120.qmail@web52007.mail.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2005/txt/msg00007.txt.bz2 After I add libcmt.lib or msvcrt.lib, I can build the test program with link to pthreadVC1.lib Thank, Gary --- Gary bai wrote: > Hi All, > I'm new to pthread-win32. I'm trying to build one > test > program join3.c in the tests directory. If I build > it > in command line "nmake clean VC", everything works. > But when I use MS Visual Studio .NET 2003 IDE to > buld > the program, I got link errors. > If I link with pthreadVC1.dll, then the erorr is: > fatal error LNK1136: invalid or corrupt file > If I link with pthreadVC1.lib, then the erorr are: > error LNK2001: unresolved external symbol > _mainCRTStartup > fatal error LNK1120: 1 unresolved externals > > I have tried different compiler options like /MD or > /MT, etc, still failed. From the makefile provided > in > the tests, there is one lib: ws2_32.lib to include. > I > did it too, still failed. I also tried use the dll > or > lib build by the nmake, still failed. > > It works by invoking nmake in the tests dir to > produce > the join3.exe, but not work in the IDE. Do I miss > some > importent linker or C/C++ settings in IDE? > > Any help is appreciate. > > Gary > > > > > __________________________________ > Do you Yahoo!? > The all-new My Yahoo! - What will yours do? > http://my.yahoo.com > __________________________________ Do you Yahoo!? Read only the mail you want - Yahoo! Mail SpamGuard. http://promotions.yahoo.com/new_mail