Hi,
The problem is that cygwin has an excutable
/bin/link.exe
which hides the executable we need here (link.exe from the Microsoft's
compiler).
To solve the problem I usually simply do:
mv /bin/link.exe /bin/link_cygwin.exe
Cheers,
Philippe.
-----Original Message-----
From: owner-roottalk_at_pcroot.cern.ch [mailto:owner-roottalk_at_pcroot.cern.ch]
On Behalf Of Marc de kamps
Sent: Thursday, August 11, 2005 4:37 AM
To: Markus Frank
Cc: roottalk_at_pcroot.cern.ch
Subject: Re: [ROOT] Installing root from source for MSVC
Hi,
I am trying to build a win32 version of root that can be used by Visual
C++. I use cygwin.
I have downloaded the root version 4.04-02 from the CVS server and ran
the configure
script: ./configure win32
It produces a makefile. I run make . The problem I described yesterday was solved by Markus' help (see below). Thanks! However, after compiling a number of .cpp files correctly, it halts on linking
build/win/ld.sh -nologo -incremental:no -nodefaultlib:libc.lib
-nodefaultlib:dfor.lib -o bin/rmkdepend.exe build/rmkdepend/cppsetup.o
build/rmkdepend/ifparser.o build/rmkdepend/include.o
build/rmkdepend/main.o build/rmkdepend/parse.o build/rmkdepend/pr.o
link: too many arguments
Try `link --help' for more information.
make: *** [bin/rmkdepend.exe] Error 1
Suggestions ?
Thanks,
Marc
Markus Frank wrote:
>Hi Marc,
>
>If you tweaked DevStudio by handed editing the options
>or did not register the environment during installation,
>the paths used by DevStudio may be changed. You can
>recover the proper environment by executing:
>
>CALL <Visual Studio installation directory>\Common7\Tools\vsvars32.bat
>
>*before* you start bash for cygwin; ie modify C:\Cygwin\Cygwin.bat:
>
><SNIP>
>@echo off
>
>C:
>CALL C:\VSNET\Common7\Tools\vsvars32.bat
>chdir C:\cygwin\bin
>set HOME=/home
>bash --login -i
></SNIP>
>
>This should give you back the proper environment.
>
>Cheers,
>
>Markus Frank
>
>
>
Received on Thu Aug 11 2005 - 16:45:29 MEST
This archive was generated by hypermail 2.2.0 : Tue Jan 02 2007 - 14:45:11 MET