This is the mail archive of the
mailing list for the pthreas-win32 project.
Re: Link error with VS71(.Net 2003): LNK1136, LNK2001
- From: Gary bai <bai_gary at yahoo dot com>
- To: pthreads-win32 at sources dot redhat dot com
- Date: Fri, 21 Jan 2005 15:12:19 -0800 (PST)
- Subject: Re: Link error with VS71(.Net 2003): LNK1136, LNK2001
After I add libcmt.lib or msvcrt.lib, I can build the
test program with link to pthreadVC1.lib
--- Gary bai <email@example.com> wrote:
> Hi All,
> I'm new to pthread-win32. I'm trying to build one
> program join3.c in the tests directory. If I build
> in command line "nmake clean VC", everything works.
> But when I use MS Visual Studio .NET 2003 IDE to
> 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
> fatal error LNK1120: 1 unresolved externals
> I have tried different compiler options like /MD or
> /MT, etc, still failed. From the makefile provided
> the tests, there is one lib: ws2_32.lib to include.
> did it too, still failed. I also tried use the dll
> lib build by the nmake, still failed.
> It works by invoking nmake in the tests dir to
> the join3.exe, but not work in the IDE. Do I miss
> importent linker or C/C++ settings in IDE?
> Any help is appreciate.
> Do you Yahoo!?
> The all-new My Yahoo! - What will yours do?
Do you Yahoo!?
Read only the mail you want - Yahoo! Mail SpamGuard.