Hi,

 

I met a issue that there are several link errors when build a project
which can be built successfully in debug version. The detail information
is below:

1.       There are two projects, the targets of both projects is
framework.

2.       Project A dependents project B's output.

3.       Project B builds successfully both Debug and Release version.

4.       Project A builds successfully in debug version.

5.       Project A builds failed in release version, there are several
link errors, the error list is below:.

Build QualityMgmt of project QualityMgmt with configuration Release

Ld ../../twk_results_mac/ViewLocal/MC_out/Release/libQualityMgmt.dylib
normal i386

cd /Users/sow11_Mac1/dev.ws.FlyingCircus_dxsow11_Int/xplat/QualityMgmt

setenv MACOSX_DEPLOYMENT_TARGET 10.4

/Developer/usr/bin/g++-4.0 -arch i386 -dynamiclib -isysroot
/Developer/SDKs/MacOSX10.4u.sdk
-L/Users/sow11_Mac1/dev.ws.FlyingCircus_dxsow11_Int/xplat/QualityMgmt/..
/../twk_results_mac/ViewLocal/MC_out/Release
-L/Users/sow11_Mac1/dev.ws.FlyingCircus_dxsow11_Int/xplat/QualityMgmt/..
/../msn_shared/mac/wkgpframework_sdk/third-party/codemesh/junc++ion/maco
s/cpp/darwin-all-universal
-L/Users/sow11_Mac1/dev.ws.FlyingCircus_dxsow11_Int/xplat/QualityMgmt/..
/../mtl_sharedbuilds/mac/Release/bin
-L/Users/sow11_Mac1/dev.ws.FlyingCircus_dxsow11_Int/xplat/QualityMgmt/..
/../twk_results_mac/ViewLocal/MC_out/Release
-L/Users/sow11_Mac1/dev.ws.FlyingCircus_dxsow11_Int/xplat/QualityMgmt/..
/../mtl_sharedbuilds/mac/MediaIndexer/Release/bin
-L/Users/sow11_Mac1/dev.ws.FlyingCircus_dxsow11_Int/xplat/QualityMgmt/..
/../msn_shared/mac/wkgpframework_sdk/third-party/codemesh/junc++ion/maco
s/models/javacore/cpp
-L/Users/sow11_Mac1/dev.ws.FlyingCircus_dxsow11_Int/xplat/QualityMgmt/..
/../mtl_sharedbuilds/mac/MediaIndexer/Release/bin
-F/Users/sow11_Mac1/dev.ws.FlyingCircus_dxsow11_Int/xplat/QualityMgmt/..
/../twk_results_mac/ViewLocal/MC_out/Release -filelist
/Users/sow11_Mac1/dev.ws.FlyingCircus_dxsow11_Int/xplat/QualityMgmt/../.
./twk_results_mac/ViewLocal/MC_inter/QualityMgmt.build/Release/QualityMg
mt.build/Objects-normal/i386/QualityMgmt.LinkFileList -install_name
@executable_path/libQualityMgmt.dylib -mmacosx-version-min=10.4
/Users/sow11_Mac1/dev.ws.FlyingCircus_dxsow11_Int/twk_results_mac/ViewLo
cal/MC_out/Release/TaskScheduler.framework/TaskScheduler
/Users/sow11_Mac1/dev.ws.FlyingCircus_dxsow11_Int/twk_results_mac/ViewLo
cal/MC_out/Release/AvidCoreThreads.framework/AvidCoreThreads -framework
Carbon -framework CoreServices
/Users/sow11_Mac1/dev.ws.FlyingCircus_dxsow11_Int/twk_results_mac/ViewLo
cal/MC_out/Release/libStringFunctions.a
/Users/sow11_Mac1/dev.ws.FlyingCircus_dxsow11_Int/twk_results_mac/ViewLo
cal/MC_out/Release/libTimeFunctions.a -lJavaMISupport -lxmogrt-g++G.3
-single_module -compatibility_version 1 -current_version 1 -o
/Users/sow11_Mac1/dev.ws.FlyingCircus_dxsow11_Int/xplat/QualityMgmt/../.
./twk_results_mac/ViewLocal/MC_out/Release/libQualityMgmt.dylib

Undefined symbols:

  "TaskScheduler::addTask(TaskSchedulerTask*, bool)", referenced from:

 
QualityMatch::CQFXUpdateAccumulator::CQFXUpdateAccumulatorImpl::addChann
el(QualityMatch::CQFXChannelKey const&)in CQFXUpdateAccumulator.o

  "TaskSchedulerTask::TaskSchedulerTask(char const*, int,
boost::function<void ()(), std::allocator<void> >, bool, int, bool)",
referenced from:

 
QualityMatch::CQFXUpdateAccumulator::CQFXUpdateAccumulatorImpl::addChann
el(QualityMatch::CQFXChannelKey const&)in CQFXUpdateAccumulator.o

  "TaskScheduler::instance()", referenced from:

 
QualityMatch::CQFXUpdateAccumulator::CQFXUpdateAccumulatorImpl::addChann
el(QualityMatch::CQFXChannelKey const&)in CQFXUpdateAccumulator.o

ld: symbol(s) not found

collect2: ld returned 1 exit status

 

 

 

Thanks,

Wade

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to