Hi,All: I am trying to setup a IOC example in tek DPO
scope, which need to use the visa32.lib in this project, I copied visa32.lib
to $(top)/myAppapp/lib folder(top is the root of this
example),and in makefile in src,I add the following line:
#----------------------------------------
# ADD MACRO DEFINITIONS AFTER THIS
LINE SYS_PROD_LIBS +=
$(TOP)/myappApp/lib/visa32 #=============================
and build failed, could you tell me how to do ?
Thank you
Tomas 2010.9.2 PS:my enveriment is : winXP,
cygwin1.5, gcc, make 3.81, perl, base 3.14.11
and this is the result :
张宁@zn /cygdrive/c/testapp $ make make -C ./configure
install make[1]: Entering directory `/cygdrive/c/testapp/configure' make
-C O.cygwin-x86 -f ../Makefile TOP=../.. T_A=cygwin-x86 install make[2]:
Entering directory `/cygdrive/c/testapp/configure/O.cygwin-x86' perl
/cygdrive/c/base-3.14.11/bin/cygwin-x86/convertRelease.pl
checkRelease make[2]: Leaving directory
`/cygdrive/c/testapp/configure/O.cygwin-x86' make[1]: Leaving directory
`/cygdrive/c/testapp/configure' make -C ./myappApp install make[1]:
Entering directory `/cygdrive/c/testapp/myappApp' make -C ./src
install make[2]: Entering directory
`/cygdrive/c/testapp/myappApp/src' make -C O.cygwin-x86 -f ../Makefile
TOP=../../.. T_A=cygwin-x86 install make[3]: Entering directory
`/cygdrive/c/testapp/myappApp/src/O.cygwin-x86' perl
/cygdrive/c/base-3.14.11/bin/cygwin-x86/makeIncludeDbd.pl base.dbd
xxxSuppo rt.dbd dbSubExample.dbd myappHello.dbd initTrace.dbd
../O.Common/myappInclude.db d Expanding
dbd /cygdrive/c/base-3.14.11/bin/cygwin-x86/dbExpand.exe -I . -I .. -I
../../../dbd -I/cygdrive/c/base-3.14.11/dbd -o ../O.Common/myapp.dbd
../O.Common/myappInclud e.dbd Installing created dbd file
../../../dbd/myapp.dbd g++ -o myappSupport.dll -shared
-Wl,--out-implib,myappSupport.lib
-Lc:/base-3.14 .11/lib/cygwin-x86
-m32
xxxRecord.o devXxxSoft.o dbSubExampl e.o myappHello.o initTrace.o
devWfSoft.o -lrecIoc -lsoftDevIoc -lmiscIoc -lrs rvIoc
-ldbtoolsIoc -lasIoc -ldbIoc -lregistryIoc -ldbStaticIoc -lca -lCom
-l../ ../../myappApp/lib/visa32 -lpthread -lreadline -lcurses
-lm /usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../i686-pc-cygwin/bin/ld:
cannot find -l../../../myappApp/lib/visa32 collect2: ld returned 1
exit status make[3]: *** [myappSupport.dll] Error 1 make[3]: Leaving
directory `/cygdrive/c/testapp/myappApp/src/O.cygwin-x86' make[2]: ***
[install.cygwin-x86] Error 2 make[2]: Leaving directory
`/cygdrive/c/testapp/myappApp/src' make[1]: *** [src.install] Error
2 make[1]: Leaving directory `/cygdrive/c/testapp/myappApp' make: ***
[myappApp.install] Error 2
张宁@zn /cygdrive/c/testapp $
Tomas 2010-9-2
|