Hi hanni_xu, On 18/01/13 07:08, hanni_xu wrote: > hi, > > I download the OpenSpliceDDSV5.5.1-src.zip from the OpenSplice site, and > setup the environment according the "Building Instructions", and run make in > cygwin bash, but occurred some error, please see below: > Administrator@xzw > /cygdrive/f/OpenSplice_src/OpenSpliceDDSV5.5.1-src/OpenSplice > $ make > make[1]: Enter > directory“/cygdrive/f/OpenSplice_src/OpenSpliceDDSV5.5.1-src/OpenSplice/setup” > (cd wrappers; make compile) > make[2]: Enter > directory“/cygdrive/f/OpenSplice_src/OpenSpliceDDSV5.5.1-src/OpenSplice/setup/wrappers” > make[2]: Nothing to do for “compile”. > ..... > make[3]: Enter > directory“/cygdrive/f/OpenSplice_src/OpenSpliceDDSV5.5.1-src/OpenSplice/src/database/odlpp” > make[4]: Enter > directory“/cygdrive/f/OpenSplice_src/OpenSpliceDDSV5.5.1-src/OpenSplice/src/database/odlpp/bld” > /cygdrive/f/OpenSplice_src/OpenSpliceDDSV5.5.1-src/OpenSplice//bin/ospl_wincmd > link -nologo -incremental:no -machine:IX86 -subsystem:console -L > -L/cygdrive/f/OpenSplice_src/OpenSpliceDDSV5.5.1-src/OpenSplice//lib/ -l > -l -o odlpp.exe > > RUNNING CMD: link -nologo -incremental:no -machine:IX86 -subsystem:console > -LIBPATH:.\ > -LIBPATH:F:\OpenSplice_src\OpenSpliceDDSV5.5.1-src\OpenSplice\lib\ .\.lib > .\.lib -OUT:odlpp.exe > link: unknown option -- n > Please try to "link --help" to get more information. > /cygdrive/f/OpenSplice_src/OpenSpliceDDSV5.5.1-src/OpenSplice//setup/makefiles/target.mak:52: > recipe for target `odlpp.exe' failed > make[4]: *** [odlpp.exe] Error 1 > make[4]: Leave > directory“/cygdrive/f/OpenSplice_src/OpenSpliceDDSV5.5.1-src/OpenSplice/src/database/odlpp/bld” > makefile:6: recipe for target `link' failed > make[3]: *** [link] Error 2 > make[3]: Leave > directory“/cygdrive/f/OpenSplice_src/OpenSpliceDDSV5.5.1-src/OpenSplice/src/database/odlpp” > /cygdrive/f/OpenSplice_src/OpenSpliceDDSV5.5.1-src/OpenSplice//setup/makefiles/subsystem.mak:11: > recipe for target `odlpp.ss_link' failed > make[2]: *** [odlpp.ss_link] Error 2 > make[2]: Leave > directory“/cygdrive/f/OpenSplice_src/OpenSpliceDDSV5.5.1-src/OpenSplice/src/database” > /cygdrive/f/OpenSplice_src/OpenSpliceDDSV5.5.1-src/OpenSplice//setup/makefiles/subsystem.mak:11: > recipe for target `database.ss_link' failed > make[1]: *** [database.ss_link] Error 2 > make[1]: Leave > directory“/cygdrive/f/OpenSplice_src/OpenSpliceDDSV5.5.1-src/OpenSplice/src” > /cygdrive/f/OpenSplice_src/OpenSpliceDDSV5.5.1-src/OpenSplice//setup/makefiles/subsystem.mak:11: > recipe for target `src.ss_link' failed > make: *** [src.ss_link] Error 2 > > Can anyone tell me what cause this error? From the error message, it seem > can't link objects, but why? thanks.
If your build environment is correctly configured then the Microsoft Visual Studio directory that holds the appropriate Visual Studio link.exe should be prefixed to the $PATH such that the build uses that tool instead of Cygwin's link.exe (which is something else entirely). Check the configuration instructions, particularly as regards setting $VS_HOME. You can confirm you are correctly configured using 'which'. You should see something like this: sm@beatrice /cygdrive/e/worgit/osplo $ which link /cygdrive/c/PROGRA~1/MICROS~2/VC/bin/link ...and *not* something like this: sm@beatrice /cygdrive/e/worgit $ which link /usr/bin/link _______________________________________________ OpenSplice DDS Developer Mailing List [email protected] Subscribe / Unsubscribe http://dev.opensplice.org/mailman/listinfo/developer
