设为首页
收藏本站
用户名
Email
自动登录
找回密码
密码
登录
注册
快捷导航
平台
Portal
论坛
BBS
文库
项目
群组
Group
我的博客
Space
搜索
搜索
热搜:
shell
linux
mysql
本版
用户
LinuxSir.cn,穿越时空的Linuxsir!
»
论坛
›
编程开发讨论区 —— LinuxSir.cn
›
Linux 程序设计专题讨论
›
各位,我编译一个工程,出现如下错误,请指教! ...
返回列表
查看:
1786
|
回复:
3
各位,我编译一个工程,出现如下错误,请指教!
[复制链接]
songbo_1220
songbo_1220
当前离线
积分
2
IP卡
狗仔卡
发表于 2008-10-17 14:00:16
|
显示全部楼层
|
阅读模式
Linking CXX shared library ..\..\lib\libosgGIS.dll
cd J:\OpenSceneGraph\osgGIS\build_cb\src\osgGIS && J:\OpenSceneGraph\CMake\cmake-2.7.20080731-win32-x86\bin\cmake.exe -E cmake_link_script CMakeFiles\osgGIS.dir\link.txt --verbose=1
J:\MinGW\build\bin\g++.exe -shared -o ..\..\lib\libosgGIS.dll -Wl,--out-implib,..\..\lib\libosgGIS.dll.a -Wl,--major-image-version,0,--minor-image-version,0 CMakeFiles\osgGIS.dir\AlignFilter.obj CMakeFiles\osgGIS.dir\Attribute.obj CMakeFiles\osgGIS.dir\AttributedNode.obj CMakeFiles\osgGIS.dir\BufferFilter.obj CMakeFiles\osgGIS.dir\BuildGeomFilter.obj CMakeFiles\osgGIS.dir\BuildLabelsFilter.obj CMakeFiles\osgGIS.dir\BuildNodesFilter.obj CMakeFiles\osgGIS.dir\ChangeShapeTypeFilter.obj CMakeFiles\osgGIS.dir\ClampFilter.obj CMakeFiles\osgGIS.dir\CollectionFilter.obj CMakeFiles\osgGIS.dir\CollectionFilterState.obj CMakeFiles\osgGIS.dir\CombineLinesFilter.obj CMakeFiles\osgGIS.dir\ConvexHullFilter.obj CMakeFiles\osgGIS.dir\CropFilter.obj CMakeFiles\osgGIS.dir\DecimateFilter.obj CMakeFiles\osgGIS.dir\DefaultFeatureStoreFactory.obj CMakeFiles\osgGIS.dir\DefaultRasterStoreFactory.obj CMakeFiles\osgGIS.dir\DensifyFilter.obj CMakeFiles\osgGIS.dir\ElevationResource.obj CMakeFiles\osgGIS.dir\Ellipsoid.obj CMakeFiles\osgGIS.dir\ExtrudeGeomFilter.obj CMakeFiles\osgGIS.dir\FadeHelper.obj CMakeFiles\osgGIS.dir\Feature.obj CMakeFiles\osgGIS.dir\FeatureCursor.obj CMakeFiles\osgGIS.dir\FeatureFilter.obj CMakeFiles\osgGIS.dir\FeatureFilterState.obj CMakeFiles\osgGIS.dir\FeatureLayer.obj CMakeFiles\osgGIS.dir\FeatureLayerCompiler.obj CMakeFiles\osgGIS.dir\FeatureLayerResource.obj CMakeFiles\osgGIS.dir\FeatureStoreCompiler.obj CMakeFiles\osgGIS.dir\Filter.obj CMakeFiles\osgGIS.dir\FilterGraph.obj CMakeFiles\osgGIS.dir\FilterState.obj CMakeFiles\osgGIS.dir\FilterEnv.obj CMakeFiles\osgGIS.dir\Fragment.obj CMakeFiles\osgGIS.dir\FragmentFilter.obj CMakeFiles\osgGIS.dir\FragmentFilterState.obj CMakeFiles\osgGIS.dir\GDAL_RasterStore.obj CMakeFiles\osgGIS.dir\GeocentricSpatialReference.obj CMakeFiles\osgGIS.dir\GeoExtent.obj CMakeFiles\osgGIS.dir\GeometryCleaner.obj CMakeFiles\osgGIS.dir\GeoPoint.obj CMakeFiles\osgGIS.dir\GeoShape.obj CMakeFiles\osgGIS.dir\GriddedLayerCompiler.obj CMakeFiles\osgGIS.dir\GroupFilter.obj CMakeFiles\osgGIS.dir\ImageUtils.obj CMakeFiles\osgGIS.dir\LayerCompiler.obj CMakeFiles\osgGIS.dir\LineSegmentIntersector2.obj CMakeFiles\osgGIS.dir\LocalizeNodesFilter.obj CMakeFiles\osgGIS.dir\Lua_ScriptEngine.obj CMakeFiles\osgGIS.dir\Lua_ScriptEngine_tolua.obj CMakeFiles\osgGIS.dir\ModelResource.obj CMakeFiles\osgGIS.dir\NodeFilter.obj CMakeFiles\osgGIS.dir\NodeFilterState.obj CMakeFiles\osgGIS.dir\Notify.obj CMakeFiles\osgGIS.dir\OGR_Feature.obj CMakeFiles\osgGIS.dir\OGR_FeatureStore.obj CMakeFiles\osgGIS.dir\OGR_SpatialReference.obj CMakeFiles\osgGIS.dir\OGR_SpatialReferenceFactory.obj CMakeFiles\osgGIS.dir\OGR_Utils.obj CMakeFiles\osgGIS.dir\OptimizerHints.obj CMakeFiles\osgGIS.dir\PagedLayerCompiler.obj CMakeFiles\osgGIS.dir\PathResource.obj CMakeFiles\osgGIS.dir\Property.obj CMakeFiles\osgGIS.dir\RandomGroupingFilter.obj CMakeFiles\osgGIS.dir\RasterResource.obj CMakeFiles\osgGIS.dir\RecalculateExtentFilter.obj CMakeFiles\osgGIS.dir\Registry.obj CMakeFiles\osgGIS.dir\RemoveHolesFilter.obj CMakeFiles\osgGIS.dir\Report.obj CMakeFiles\osgGIS.dir\Resource.obj CMakeFiles\osgGIS.dir\ResourceCache.obj CMakeFiles\osgGIS.dir\ResourceLibrary.obj CMakeFiles\osgGIS.dir\ResourcePackager.obj CMakeFiles\osgGIS.dir\RTreeSpatialIndex.obj CMakeFiles\osgGIS.dir\Script.obj CMakeFiles\osgGIS.dir\SelectFilter.obj CMakeFiles\osgGIS.dir\Session.obj CMakeFiles\osgGIS.dir\SkinResource.obj CMakeFiles\osgGIS.dir\SimpleFeature.obj CMakeFiles\osgGIS.dir\SimpleLayerCompiler.obj CMakeFiles\osgGIS.dir\SimpleSpatialIndex.obj CMakeFiles\osgGIS.dir\SmartReadCallback.obj CMakeFiles\osgGIS.dir\SpatialReference.obj CMakeFiles\osgGIS.dir\SRSResource.obj CMakeFiles\osgGIS.dir\SubstituteModelFilter.obj CMakeFiles\osgGIS.dir\Task.obj CMakeFiles\osgGIS.dir\TaskManager.obj CMakeFiles\osgGIS.dir\TerrainUtils.obj CMakeFiles\osgGIS.dir\TransformFilter.obj CMakeFiles\osgGIS.dir\Units.obj CMakeFiles\osgGIS.dir\Utils.obj CMakeFiles\osgGIS.dir\WriteFeaturesFilter.obj CMakeFiles\osgGIS.dir\WriteTextFilter.obj -LC:\WINDOWS\system32 -LJ:\OpenSceneGraph\GDAL\gdal-1.5.2\.libs -LJ:\OpenSceneGraph\Lua\lua-5.1.4\src -LJ:\OpenSceneGraph\toLua\tolua-5.1b\lib C:\WINDOWS\system32\libosg.dll C:\WINDOWS\system32\libosgUtil.dll C:\WINDOWS\system32\libosgDB.dll C:\WINDOWS\system32\libosgFX.dll C:\WINDOWS\system32\libosgSim.dll C:\WINDOWS\system32\libosgText.dll C:\WINDOWS\system32\libOpenThreads.dll J:\OpenSceneGraph\GDAL\gdal-1.5.2\.libs\libgdal.dll.a J:\OpenSceneGraph\Lua\lua-5.1.4\src\liblua.a J:\OpenSceneGraph\toLua\tolua-5.1b\lib\libtolua.a -lglu32 -lopengl32 C:\WINDOWS\system32\libOpenThreads.dll J:\OpenSceneGraph\GDAL\gdal-1.5.2\.libs\libgdal.dll.a J:\OpenSceneGraph\Lua\lua-5.1.4\src\liblua.a J:\OpenSceneGraph\toLua\tolua-5.1b\lib\libtolua.a -lglu32 -lopengl32
J:/MinGW/build/bin/../lib/gcc/mingw32/3.4.5/libgcc.a(w32-shared-ptr.o)
.text+0x31): undefined reference to `__imp__GetAtomNameA@12'
J:/MinGW/build/bin/../lib/gcc/mingw32/3.4.5/libgcc.a(w32-shared-ptr.o)
.text+0x159): undefined reference to `__imp__FindAtomA@4'
J:/MinGW/build/bin/../lib/gcc/mingw32/3.4.5/libgcc.a(w32-shared-ptr.o)
.text+0x2b1): undefined reference to `__imp__AddAtomA@4'
J:/MinGW/build/bin/../lib/gcc/mingw32/3.4.5/libgcc.a(w32-shared-ptr.o)
.text+0x2d2): undefined reference to `__imp__FindAtomA@4'
J:/MinGW/build/bin/../lib/gcc/mingw32/3.4.5/libgcc.a(unwind-sjlj.o)
.text+0xf): undefined reference to `__imp__TlsAlloc@0'
J:/MinGW/build/bin/../lib/gcc/mingw32/3.4.5/libgcc.a(unwind-sjlj.o)
.text+0x42): undefined reference to `__imp__GetLastError@0'
J:/MinGW/build/bin/../lib/gcc/mingw32/3.4.5/libgcc.a(unwind-sjlj.o)
.text+0xc0): undefined reference to `_InterlockedIncrement@4'
J:/MinGW/build/bin/../lib/gcc/mingw32/3.4.5/libgcc.a(unwind-sjlj.o)
.text+0xe9): undefined reference to `__imp__Sleep@4'
J:/MinGW/build/bin/../lib/gcc/mingw32/3.4.5/libgcc.a(unwind-sjlj.o)
.text+0x195): undefined reference to `__imp__GetLastError@0'
J:/MinGW/build/bin/../lib/gcc/mingw32/3.4.5/libgcc.a(unwind-sjlj.o)
.text+0x1a0): undefined reference to `__imp__TlsGetValue@4'
J:/MinGW/build/bin/../lib/gcc/mingw32/3.4.5/libgcc.a(unwind-sjlj.o):(.text+0x1ae): undefined reference to `__imp__SetLastError@4'
J:/MinGW/build/bin/../lib/gcc/mingw32/3.4.5/libgcc.a(unwind-sjlj.o):(.text+0x1c8): undefined reference to `__imp__TlsSetValue@8'
J:/MinGW/build/bin/../lib/gcc/mingw32/3.4.5/libgcc.a(unwind-sjlj.o):(.text+0x1e2): undefined reference to `__imp__GetLastError@0'
J:/MinGW/build/bin/../lib/gcc/mingw32/3.4.5/libgcc.a(unwind-sjlj.o):(.text+0x26c): undefined reference to `__imp__TlsSetValue@8'
J:/MinGW/build/bin/../lib/gcc/mingw32/3.4.5/libgcc.a(unwind-sjlj.o):(.text+0x279): undefined reference to `__imp__GetLastError@0'
J:/MinGW/build/bin/../lib/gcc/mingw32/3.4.5/libgcc.a(unwind-sjlj.o):(.text+0x4a5): undefined reference to `__imp__GetLastError@0'
J:/MinGW/build/bin/../lib/gcc/mingw32/3.4.5/libgcc.a(unwind-sjlj.o):(.text+0x4b0): undefined reference to `__imp__TlsGetValue@4'
J:/MinGW/build/bin/../lib/gcc/mingw32/3.4.5/libgcc.a(unwind-sjlj.o):(.text+0x4be): undefined reference to `__imp__SetLastError@4'
J:/MinGW/build/bin/../lib/gcc/mingw32/3.4.5/libgcc.a(unwind-sjlj.o):(.text+0x55b): undefined reference to `__imp__TlsSetValue@8'
J:/MinGW/build/bin/../lib/gcc/mingw32/3.4.5/libgcc.a(unwind-sjlj.o):(.text+0x568): undefined reference to `__imp__GetLastError@0'
J:/MinGW/build/bin/../lib/gcc/mingw32/3.4.5/libgcc.a(unwind-sjlj.o):(.text+0x715): undefined reference to `__imp__GetLastError@0'
J:/MinGW/build/bin/../lib/gcc/mingw32/3.4.5/libgcc.a(unwind-sjlj.o):(.text+0x720): undefined reference to `__imp__TlsGetValue@4'
J:/MinGW/build/bin/../lib/gcc/mingw32/3.4.5/libgcc.a(unwind-sjlj.o):(.text+0x72e): undefined reference to `__imp__SetLastError@4'
J:/MinGW/build/bin/../lib/gcc/mingw32/3.4.5/libgcc.a(unwind-sjlj.o):(.text+0x79a): undefined reference to `__imp__TlsSetValue@8'
J:/MinGW/build/bin/../lib/gcc/mingw32/3.4.5/libgcc.a(unwind-sjlj.o):(.text+0x7a7): undefined reference to `__imp__GetLastError@0'
J:/MinGW/build/bin/../lib/gcc/mingw32/3.4.5/libgcc.a(unwind-sjlj.o):(.text+0x8a5): undefined reference to `__imp__GetLastError@0'
J:/MinGW/build/bin/../lib/gcc/mingw32/3.4.5/libgcc.a(unwind-sjlj.o):(.text+0x8b0): undefined reference to `__imp__TlsGetValue@4'
J:/MinGW/build/bin/../lib/gcc/mingw32/3.4.5/libgcc.a(unwind-sjlj.o):(.text+0x8be): undefined reference to `__imp__SetLastError@4'
J:/MinGW/build/bin/../lib/gcc/mingw32/3.4.5/libgcc.a(unwind-sjlj.o):(.text+0x8dc): undefined reference to `__imp__TlsSetValue@8'
J:/MinGW/build/bin/../lib/gcc/mingw32/3.4.5/libgcc.a(unwind-sjlj.o):(.text+0x8ed): undefined reference to `__imp__GetLastError@0'
J:/MinGW/build/bin/../lib/gcc/mingw32/3.4.5/libgcc.a(unwind-sjlj.o):(.text+0x9dc): undefined reference to `__imp__GetLastError@0'
J:/MinGW/build/bin/../lib/gcc/mingw32/3.4.5/libgcc.a(unwind-sjlj.o):(.text+0x9e7): undefined reference to `__imp__TlsGetValue@4'
J:/MinGW/build/bin/../lib/gcc/mingw32/3.4.5/libgcc.a(unwind-sjlj.o):(.text+0x9f5): undefined reference to `__imp__SetLastError@4'
J:/MinGW/build/bin/../lib/gcc/mingw32/3.4.5/libgcc.a(unwind-sjlj.o):(.text+0xa0f): undefined reference to `__imp__TlsSetValue@8'
J:/MinGW/build/bin/../lib/gcc/mingw32/3.4.5/libgcc.a(unwind-sjlj.o):(.text+0xa1c): undefined reference to `__imp__GetLastError@0'
J:/MinGW/build/bin/../lib/gcc/mingw32/3.4.5/libgcc.a(unwind-sjlj.o):(.text+0xb30): undefined reference to `__imp__GetLastError@0'
J:/MinGW/build/bin/../lib/gcc/mingw32/3.4.5/libgcc.a(unwind-sjlj.o):(.text+0xb3c): undefined reference to `__imp__TlsGetValue@4'
J:/MinGW/build/bin/../lib/gcc/mingw32/3.4.5/libgcc.a(unwind-sjlj.o):(.text+0xb4d): undefined reference to `__imp__SetLastError@4'
mingw32-make.exe[2]: Leaving directory `J:/OpenSceneGraph/osgGIS/build_cb'
J:/MinGW/build/bin/../lib/gcc/mingw32/3.4.5/libgcc.a(gthr-win32.o):(.text+0x5b): undefined reference to `_InterlockedIncrement@4'
mingw32-make.exe[1]: Leaving directory `J:/OpenSceneGraph/osgGIS/build_cb'
J:/MinGW/build/bin/../lib/gcc/mingw32/3.4.5/libgcc.a(gthr-win32.o):(.text+0x79): undefined reference to `__imp__Sleep@4'
J:/MinGW/build/bin/../lib/gcc/mingw32/3.4.5/libgcc.a(gthr-win32.o):(.text+0xa8): undefined reference to `__imp__TlsAlloc@0'
J:/MinGW/build/bin/../lib/gcc/mingw32/3.4.5/libgcc.a(gthr-win32.o):(.text+0xd2): undefined reference to `__imp__GetLastError@0'
J:/MinGW/build/bin/../lib/gcc/mingw32/3.4.5/libgcc.a(gthr-win32.o):(.text+0xee): undefined reference to `__imp__TlsFree@4'
J:/MinGW/build/bin/../lib/gcc/mingw32/3.4.5/libgcc.a(gthr-win32.o):(.text+0x102): undefined reference to `__imp__GetLastError@0'
J:/MinGW/build/bin/../lib/gcc/mingw32/3.4.5/libgcc.a(gthr-win32.o):(.text+0x11e): undefined reference to `__imp__GetLastError@0'
J:/MinGW/build/bin/../lib/gcc/mingw32/3.4.5/libgcc.a(gthr-win32.o):(.text+0x12c): undefined reference to `__imp__TlsGetValue@4'
J:/MinGW/build/bin/../lib/gcc/mingw32/3.4.5/libgcc.a(gthr-win32.o):(.text+0x13a): undefined reference to `__imp__SetLastError@4'
J:/MinGW/build/bin/../lib/gcc/mingw32/3.4.5/libgcc.a(gthr-win32.o):(.text+0x165): undefined reference to `__imp__TlsSetValue@8'
J:/MinGW/build/bin/../lib/gcc/mingw32/3.4.5/libgcc.a(gthr-win32.o):(.text+0x178): undefined reference to `__imp__GetLastError@0'
J:/MinGW/build/bin/../lib/gcc/mingw32/3.4.5/libgcc.a(gthr-win32.o):(.text+0x1be): undefined reference to `__imp__CreateSemaphoreA@16'
回复
使用道具
举报
提升卡
置顶卡
沉默卡
喧嚣卡
变色卡
显身卡
hanchao3c
hanchao3c
当前离线
积分
91
IP卡
狗仔卡
发表于 2008-10-23 10:58:19
|
显示全部楼层
显然是少link了一个库,把命令发出看一下
回复
支持
反对
使用道具
举报
显身卡
songbo_1220
songbo_1220
当前离线
积分
2
IP卡
狗仔卡
楼主
|
发表于 2008-10-25 09:43:53
|
显示全部楼层
已经编译通过,原因是由于链接的库版本不一样,.a链接.a, .dll.a链接.dll.a, 多谢
回复
支持
反对
使用道具
举报
显身卡
jpjao
jpjao
当前离线
积分
1
IP卡
狗仔卡
发表于 2009-12-12 08:09:54
|
显示全部楼层
I got the same error, can you help?
songbo_1220:
What do you mean by
经编译通过,原因是由于链接的库版本不一样,.a链接.a, .dll.a链接.dll.a, 多谢 "
Does it means linker version is wrong?
Thank.
回复
支持
反对
使用道具
举报
显身卡
返回列表
高级模式
B
Color
Image
Link
Quote
Code
Smilies
您需要登录后才可以回帖
登录
|
注册
本版积分规则
发表回复
回帖后跳转到最后一页
Copyright © 2002-2023
LinuxSir.cn
(http://www.linuxsir.cn/) 版权所有 All Rights Reserved.
Powered by
RedflagLinux!
技术支持:
中科红旗
|
京ICP备19024520号
快速回复
返回顶部
返回列表