Hi Marc,
cygwin picks up GNU link, not MSVC's link. Make sure that (under cygwin) /usr/local/bin is before /usr/bin (adjust in your .profile), and do
ln -s /cygdrive/c/Program\ Files/Microsoft\ Visual\ Studio\ .NET/Vc7/bin/link.exe /usr/local/bin/
Cheers, Axel.
Marc de kamps wrote:
> 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 >> >> >>
This archive was generated by hypermail 2.2.0 : Tue Jan 02 2007 - 14:45:11 MET