Getting exception while compiling in 64bit visual studio 9.0 sp1 -
i getting exception while compiling cpp code in 64bit, same code working fine while compiling 32bit.
i using "microsoft visual studio 9.0 sp1"
error getting is:
cl.exe /zi /d "win32" /d "_windows" /d "_usrdll" /d "_windll" /d "_mbcs" /d "unicode" /ehsc /tp /nologo /c /foobjs\dllversioncheck.obj /mt -iinclude -i"c:\program files\j2sdk1.4.1_02\include" -i"c:\program files\j2sdk1.4.1_02\include\win32" /tp src\dllversioncheck.cpp dllversioncheck.cpp
c:\program files (x86)\microsoft visual studio 9.0\vc\include\crtdefs.h(560) : error c2485: 'deprecated' : unrecognized extended attribute
c:\program files (x86)\microsoft visual studio 9.0\vc\include\stdio.h(237) : error c2485: 'deprecated' : unrecognized extended attribute
c:\program files (x86)\microsoft visual studio 9.0\vc\include\stdio.h(252) : error c2485: 'deprecated' : unrecognized extended attribute
c:\program files (x86)\microsoft visual studio 9.0\vc\include\stdio.h(256) : error c2485: 'deprecated' : unrecognized extended attribute
c:\program files (x86)\microsoft visual studio 9.0\vc\include\stdio.h(257) : error c2485: 'deprecated' : unrecognized extended attribute
c:\program files (x86)\microsoft visual studio 9.0\vc\include\stdio.h(259) : warning c4616: #pragma warning : warning number '6530' out of range, must between '4001' , '4999'
c:\program files (x86)\microsoft visual studio 9.0\vc\include\stdio.h(278) : error c2265: '' : reference zero-sized array illegal
c:\program files (x86)\microsoft visual studio 9.0\vc\include\stdio.h(279) : warning c4003: not enough actual parameters macro '__define_cpp_overload_standard_func_0_0_ex'
c:\program files (x86)\microsoft visual studio 9.0\vc\include\stdio.h(279) : warning c4003: not enough actual parameters macro '_crt_insecure_deprecate'
c:\program files (x86)\microsoft visual studio 9.0\vc\include\stdio.h(279) : error c2485: 'deprecated' : unrecognized extended attribute
c:\program files (x86)\microsoft visual studio 9.0\vc\include\stdio.h(279) : error c2144: syntax error : missing ';' before type 'char'
c:\program files (x86)\microsoft visual studio 9.0\vc\include\stdio.h(279) : error c2501: 'gets' : missing storage-class or type specifiers
c:\program files (x86)\microsoft visual studio 9.0\vc\include\stdio.h(279) : fatal error c1004: unexpected end of file found nmake : fatal error u1077: 'cl.exe' : return code '0x2' stop.
i using makefile copiling code:
# ------------- directory path source files ------------- src_dir=src # ------------- directory path header files ------------- inc_dir=include # ------------- directory path object files ------------- obj_dir=objs # ------------- directory path binary files ------------- dll_dir=dll # ------------- include directories ------------------- inc= -i$(inc_dir) -i"$(java_home)\include" -i"$(java_home)\include\win32" # ------------- other included libraries ------------------- other_inc=advapi32.lib shell32.lib version.lib msi.lib # ------------- compiler compile source files ------------ compiler=cl.exe # ------------- compiler options ------------- comp_opt1= /zi /d "win32" /d "_windows" /d "_usrdll" /d "_windll" /d "_mbcs" /d "unicode" /ehsc \ /tp /nologo /c /fo$@ /mt # ----------- linker name create executable --------- linker_name=link.exe # -------------- linker options ------------- linker_opt=/nologo /dll /subsystem:console /out:$@ all: make_dir $(dll_dir)\manageengineexdllversioncheck.dll clean: clean_dll make_dir: - mkdir $(dll_dir) - mkdir $(obj_dir) clean_dll: - rm -rf $(dll_dir) - rm -rf $(obj_dir) # ------------- compilation commands ------------- $(obj_dir)\dllversioncheck.obj: $(src_dir)\dllversioncheck.cpp $(compiler) $(comp_opt1) $(inc) /tp $(src_dir)\dllversioncheck.cpp $(obj_dir)\manageengineexdllversioncheck.obj: $(src_dir)\manageengineexdllversioncheck.cpp $(compiler) $(comp_opt1) $(inc) /tp $(src_dir)\manageengineexdllversioncheck.cpp $(obj_dir)\*.obj: $(obj_dir)\dllversioncheck.obj \ $(obj_dir)\manageengineexdllversioncheck.obj $(dll_dir)\manageengineexdllversioncheck.dll: $(obj_dir)\*.obj $(linker_name) $(linker_opt) \ $(obj_dir)\dllversioncheck.obj \ $(obj_dir)\manageengineexdllversioncheck.obj \ $(other_inc) #************************************************************************* # end of makefile #*************************************************************************
Comments
Post a Comment