# Win32 build problems

**URL:** <https://rubytalk.org/t/win32-build-problems/1235>\
**Category:** ruby-talk\
**Created:** [15 August 2002 23:15 UTC](https://rubytalk.org/t/win32-build-problems/1235 "2002-08-15T23:15:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![John\_Aronson](https://avatars.discourse-cdn.com/v4/letter/j/2acd7d/32.png) [@John\_Aronson](https://rubytalk.org/u/John_Aronson)\
**Post date:** [15 August 2002 23:15 UTC](https://rubytalk.org/t/win32-build-problems/1235/1 "2002-08-15T23:15:35Z")

</div>

Hi,

I’m trying to build Ruby 1.6.7 on a Win32 machine and I got this error:

win32.obj : error LNK2001: unresolved external symbol \_\_imp\_\_\_\_pioinfominiruby.exe : fatal error LNK1120: 1 unresolved externalsNMAKE : fatal error U1077: ‘cl’ : return code '0x2’Stop.  
Has anyone seen this error before? Google gave me a hit on the symbol name, but the web page was in Japanese. I’m using a fresh install of Visual C++ 4.0 and my environment is:

include=c:\msdev\include;c:\msdev\mfc\include;%include%  
lib=c:\msdev\lib;c:\msdev\mfc\lib;%lib%

John Aronson

---

<div class="post-metadata">

**Author:** ![Nobuyoshi\_Nakada](https://avatars.discourse-cdn.com/v4/letter/n/edb3f5/32.png) [@Nobuyoshi\_Nakada](https://rubytalk.org/u/Nobuyoshi_Nakada)\
**Post date:** [16 August 2002 01:58 UTC](https://rubytalk.org/t/win32-build-problems/1235/2 "2002-08-16T01:58:12Z")

</div>

Hi,

# why lines are concatenated?

> I’m trying to build Ruby 1.6.7 on a Win32 machine and I got this error:
> 
> win32.obj : error LNK2001: unresolved external symbol \_\_imp\_\_\_\_pioinfo  
> miniruby.exe : fatal error LNK1120: 1 unresolved externals  
> NMAKE : fatal error U1077: ‘cl’ : return code ‘0x2’  
> Stop.
> 
> Has anyone seen this error before? Google gave me a hit on  
> the symbol name, but the web page was in Japanese. I’m using  
> a fresh install of Visual C++ 4.0 and my environment is:

Insert following line before !INCLUDE line in Makefile created  
by configure.bat.

CFLAGS = -nologo -DNT=1 -ML -Zi -O2b2x -G5

While CFLAGS is defaulted to use `-MD’ in win32/Makefile.sub  
for VC 5.0 or later, msvcrt.dll in VC 4.0 doesn’t have/export  
\_\_pioinfo needed by ruby. So you should link with libc.lib  
instead of msvcrt.lib.

> **···**
>
> At Fri, 16 Aug 2002 08:15:35 +0900, John Aronson wrote:
> 
> –  
> Nobu Nakada
