Re: compiling with Visual C++

From: Valery Fine (fine@rsgi01.rhic.bnl.gov)
Date: Mon Feb 09 1998 - 16:25:57 MET


Hello Rene

On  9 Feb 98 at 14:22, you wrote:

> I'm trying to compile and link the hsimple.c example with the
> command line compiler from visual c++ version 5.0. (cl.exe).

   One can find a "Makefile" for Microsoft Nmake along with 
hsimple.c.

  Did you try to go to the root/test subdirectory and just type:

  c:\root\test>NMAKE -f makefile.win


  Doesn't it work for you ?

    With my best regards,
                  Valery

  PS. I've tried it myself and found the last version of Makefile for 
Windows has a bug:

  The lines:


$(VVECTOR):     $(VVECTORO)
                $(LD) $(LDFLAGS) $(VVECTORO) $(LIBS) $(OutPutOpt) $(VVECTOR)
                @echo "$(VVECTOR) done"

$(VMATRIX):     $(VMATRIXO)
                $(LD) $(LDFLAGS) $(VMATRIXO) $(LIBS) $(OutPutOpt) $(VMATRIX)
                @echo "$(VMATRIX) done"

$(VLAZY):       $(VLAZYO)
                $(LD) $(LDFLAGS) $(VLAZYO) $(LIBS) $(OutPutOpt) $(VLAZY)
                @echo "$(VLAZY) done"


must be


$(VVECTOR):     $(VVECTORO)
                $(LD) $(LDFLAGS) $(VVECTORO) $(LIBS) $(OutPutOpt)$(VVECTOR)
                @echo "$(VVECTOR) done"

$(VMATRIX):     $(VMATRIXO)
                $(LD) $(LDFLAGS) $(VMATRIXO) $(LIBS) $(OutPutOpt)$(VMATRIX)
                @echo "$(VMATRIX) done"

$(VLAZY):       $(VLAZYO)
                $(LD) $(LDFLAGS) $(VLAZYO) $(LIBS) $(OutPutOpt)$(VLAZY)
                @echo "$(VLAZY) done"


   The only problem is the EXTRA BLANK 
between $(OutPutOpt) and the package name like $(VLAZY) and VMATRIX example
can not be compiled due some bugs

  Sp to succed just remove VMATRIX, namely delete  $(VMATRIX) from the line below

PROGRAMS      = $(EVENT) $(HWORLD) $(HSIMPLE) $(MINEXAM) $(TSTRING) \
                $(TCOLLEX) $(VVECTOR) $(VMATRIX) $(VLAZY)

to get 

PROGRAMS      = $(EVENT) $(HWORLD) $(HSIMPLE) $(MINEXAM) $(TSTRING) \
                $(TCOLLEX) $(VVECTOR) $(VLAZY)

  and type nmake again.

   Hope this helps.
                  Valery
=================================================================
Dr. Valeri Faine (Fine)
    -------------------          Phone: +1 516 344 7806
Brookhaven National Laboratory   FAX  : +1 516 344 4206
Bldg. 510A /STAR                 mailto:fine@rsgi01.rhic.bnl.gov
Upton, New York, 11973-5000      http://nicewww.cern.ch/~fine
USA
                                 
Dr. Valery Fine                  Telex : 911621 dubna su
    -----------
LCTA/Joint Inst.for Nuclear Res. Phone : +7 09621 6 40 80
141980 Dubna, Moscow region      Fax   : +7 09621 6 51 45
Russia                           mailto:fine@main1.jinr.dubna.su                              



This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:34:29 MET