[Win32utils-devel] Compilation errors

Wayne Vucenic wvucenic at netgate.net
Sun Feb 27 15:53:34 EST 2005


Hi Shashank,

I don't know if this will fix your __ftol2 error, but I notice that in
your INCLUDE and LIB paths, the Platform SDK is the second entry.  I
always set these paths so the Platform SDK is the first entry, because
the Platform SDK contains Microsoft's latest stuff, often in the form
of modified include files and/or libraries, so the search paths should
be set to find these in the SDK first.

Also, I'd make sure you have the latest Platform SDK, which it looks
like you probably do.

Hope this helps,

Wayne

Sunday, February 27, 2005, 8:26:14 AM, you wrote:

>  Hi Park,

>  One more thing. I have the following (see below) Microsoft
> products installed on  my machine. 
>  Notice that there many places (in bold) where you find the compiler. Do you think
>  I am compiling/linking with the wrong INCLUDE and LIB files? This is how I have set them:


> Microsoft Windows XP [Version 5.1.2600]
>  (C) Copyright 1985-2001 Microsoft Corp.

C:\win32utils>>set
C:\win32utils>>PATH=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;
>  C:\Program Files\Microsoft Visual C++ Toolkit 2003\bin;
>  C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322;
>  C:\ProgramFiles\Microsoft.NET\SDK\v1.1\Bin;
>  C:\Program Files\Microsoft SDK\Bin\Win64;
>  C:\Program Files\Microsoft SDK\Bin;C:\bison\bin;c:\ruby\bin;

>  C:\win32utils>Set INCLUDE=C:\Program Files\Microsoft Visual C++ Toolkit 2003\include;
>  C:\Program Files\Microsoft Platform SDK for Windows XP SP2\include;
>  C:\Program Files\Microsoft Visual Studio .NET\FrameworkSDK\include;
>  C:\OpenSSL\include;C:\Program Files\Microsoft Visual Studio\VC98\Include;

>  C:\win32utils>Set LIB=C:\Program Files\Microsoft Visual C++ Toolkit 2003\lib;
>  C:\Program Files\Microsoft Platform SDK for Windows XP SP2\lib;
>  C:\Program Files\Microsoft Visual Studio .NET\FrameworkSDK\Lib\;
>  C:\OpenSSL\lib\VC;C:\Program Files\Microsoft VisualStudio\VC98\LIB

>  C:\win32utils>cd ..

C:\>>cd "Program Files"

>  C:\Program Files>dir  Micro*
>   Volume in drive C has no label.
>   Volume Serial Number is 6B0E-6992

>   Directory of C:\Program Files

>  01/20/2005  11:59 PM    <DIR>          Microsoft ACT
>  10/04/2003  03:14 PM    <DIR>          Microsoft ActiveSync
>  11/05/2003  08:28 AM    <DIR>          Microsoft Expedia
>  01/01/2003  04:49 AM    <DIR>          microsoft frontpage
>  01/20/2005  11:59 PM    <DIR>          Microsoft Office
> 10/29/2004  07:16 PM    <DIR>          Microsoft Platform SDK for Windows XP SP2
>  02/29/2004  01:27 PM    <DIR>          Microsoft SDK
>  03/05/2004  08:04 PM    <DIR>          Microsoft SQL Server
> 10/29/2004  07:23 PM    <DIR>          Microsoft Visual C++ Toolkit 2003
>  10/04/2003  03:43 PM    <DIR>          Microsoft Visual Studio
>  01/21/2005  12:29 AM    <DIR>          Microsoft Visual Studio .NET
>  12/02/2003  11:31 PM    <DIR>          Microsoft Visual Studio .NET 2003
>  01/20/2005  11:59 PM    <DIR>          Microsoft.NET
>                 0 File(s)              0 bytes
>                13 Dir(s)   6,174,777,344 bytes free

>  C:\Program Files>

>  Park Heesob wrote:
  
  
> Any ideas of what could be wrong with my process?

> Thanks,
> -- shanko

> win32-pipe:
> -------------------------

> creating Makefile
>  cl -nologo -MD -Zi -O2b2xg- -G5 -I. 
> -Ic:/ruby/lib/ruby/1.8/i386-mswin32
> -Ic:/ruby/lib/ruby/1.8/i386-mswin32 
> -I.  -I. -I./.. -I./../missing -c -Tcpipe.c
> pipe.c
>  cl -nologo -LD -Fepipe.so pipe.obj msvcrt-ruby18.lib  oldnames.lib 
> user32.lib advapi32.lib wsock32.lib  -link -incremental:no -debug 
> -opt:ref -opt:icf -dll -libpath:"c:/ruby/lib" -def:pipe-i386-mswin32.def
>   Creating library pipe.lib and object pipe.exp
> pipe.obj : error LNK2019: unresolved external symbol __ftol2 referenced
> in function _pipe_wait
> pipe.so : fatal error LNK1120: 1 unresolved externals 





More information about the win32utils-devel mailing list