I am trying to compile a National Instruments code in VC++ and cygwin using nmake.
I downloaded CERN’s ROOT for Windows and it compiled just fine.
But because I wanted some other libraries I had to re-install Brookhaven’s ROOT for windows. Since then it has not compiled. Since I had some errors with the /usr/bin/link, I did mv /usr/bin/link.exe /usr/bin/link_cyg.exe as suggested in a ROOT forum. But now I am stuck with this error with the inability to make an .obj file and a fatal error related to BINDEXPLIB. Does anyone have any ideas?
Deleting dictionary…
Could Not Find C:\cygwin\home\Sujeewa\TestCode\LeakTest\TLeakTestdict.h
Generating dictionary …
cl -D_MT -D_DLL -MDd -EHsc -nologo -G5 -GR -MD -DWIN32 -DVISUAL_CPLUS
PLUS -D_WINDOWS -IC:\ROOT/include -O2 -c TLeakTestdict.cpp
cl : Command line warning D9025 : overriding ‘/MDd’ with '/MD’
cl : Command line warning D9002 : ignoring unknown option '-G5’
TLeakTestdict.cpp
c:\cygwin\home\sujeewa\testcode\gotemp\GSkipCommExt.h(65) : warning C4068: unkno
wn pragma
c:\cygwin\home\sujeewa\testcode\gotemp\GSkipCommExt.h(224) : warning C4068: unkn
own pragma
c:\cygwin\home\sujeewa\testcode\gotemp\GSensorDDSMem.h(67) : warning C4068: unkn
own pragma
c:\cygwin\home\sujeewa\testcode\gotemp\GSensorDDSMem.h(114) : warning C4068: unk
nown pragma
TLeakTestdict.cpp(123) : warning C4996: ‘strcat’ was declared deprecated
C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\string.h(78) : see
declaration of 'strcat’
Message: 'This function or variable may be unsafe. Consider using strcat
_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online hel
p for details.'
TLeakTestdict.cpp(169) : warning C4996: ‘strcat’ was declared deprecated
C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\string.h(78) : see
declaration of 'strcat’
Message: 'This function or variable may be unsafe. Consider using strcat
_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online hel
p for details.'
TLeakTestdict.cpp(175) : warning C4996: ‘strcat’ was declared deprecated
C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\string.h(78) : see
declaration of 'strcat’
Message: 'This function or variable may be unsafe. Consider using strcat
_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online hel
p for details.'
Linking libLeakTest.dll …
BINDEXPLIB libLeakTest TLeakTest.obj TLeakTestdict.obj > libLeakTest.de
f
Unable to find ‘TLeakTest.obj’ for reading:
NMAKE : fatal error U1077: ‘BINDEXPLIB’ : return code '0x1’
Stop.
[quote=“sujeewa”]I had to re-install Brookhaven’s ROOT for windows. Since then it has not compiled. [/quote]Can you say which ROOT version from BNL you installed? Did you install it into the separate dedicated directory? It would be nice to see your entire project to reproduce your trouble.