Hello
Thank you very much for your reply.
I have added extern "C" before the function definition of MAXvSetup() and RTN_VALUES MAXvConfig(), but unfortunately, this can not solve my problem, and when I download st.cmd to the VME crate, it is still display the error: “undefined symbol:MAXvSetup”.
And I change the order of libs in makefile, it can not solve the problem also.
When I input nm command(nm bisaxsioc.munch | grep MAXvSetup) in the /bin/ vxWorks-ppc604_long directory, it displays nothing. So I think the .munch file does not correctly define the symbol MAXvSetup. Now I do not know what is the reason.
And I have another question, I have seen some OmsSrc/Makefile in some worked program, a part of the source code is bisaxs_SRCS_vxWorks += devMAXv.cc drvMAXv.cc, but the source file of OmsSrc which I copied from synApps_5_3/support/motor/6-3/motorApp/OmsSrc is SRCS += devMAXv.cc drvMAXv.cc. so I do not know if I should change it into the word of omsMAXv_SRCS_vxWorks.
Thank you very much.
hongchunxia
===================================================
No.239 Zhangheng Road
PuDong District
Shanghai Institute of Applied Physics CAS
Shanghai, China