HI Zou wan,

OSG and VPB compile just fine with gcc just fine under Linux and other
OS's, my guess there is a bug in Mingw's implementation of gcc.

I don't personally use Windows, perhaps others might have some
experience with using gcc and Mingw and VPB/OSG. If not I'd suggest
trying to update Mingw to see if it fixes the problem.

Robert.

On Thu, Mar 18, 2010 at 4:27 PM, zouwan <[email protected]> wrote:
> I have use vs 2008 to compile OSG and VPB from latest SVN , everything is
> OK.
>
>
>
> But When I use mingw gcc 3.4.4, OSG is OK, VPB has some link error. Many
> thanks!
>
>
>
>
>
> error message:
>
>
>
> -*- mode: compilation; default-directory:
> "e:/code/OpenSceneGraph/build_vpb_mingw/src/vpb/" -*-
>
> Compilation started at Fri Mar 19 00:05:05
>
>
>
> make -k
>
> -- Configuring done
>
> -- Generating done
>
> -- Build files have been written to: E:/code/OpenSceneGraph/build_vpb_mingw
>
> Linking CXX shared library ..\..\lib\libvpb.dll
>
> Creating library file: ..\..\lib\libvpb.dll.a
>
> CMakeFiles\vpb.dir\BuildLog.obj(.text$_ZNK3osg10Referenced5unrefEv[osg::Referenced::unref()
> const]+0x10):BuildLog.cpp: undefined reference to
> `_imp___ZN11OpenThreads6AtomicmmEv'
>
> CMakeFiles\vpb.dir\BuildLog.obj(.text$_ZNK3osg10Referenced3refEv[osg::Referenced::ref()
> const]+0x10):BuildLog.cpp: undefined reference to
> `_imp___ZN11OpenThreads6AtomicppEv'
>
> CMakeFiles\vpb.dir\System.obj(.text$_ZNK3osg10Referenced14referenceCountEv[osg::Referenced::referenceCount()
> const]+0x10):System.cpp: undefined reference to
> `_imp___ZNK11OpenThreads6AtomiccvjEv'
>
> collect2: ld returned 1 exit status
>
> make[2]: *** [lib/libvpb.dll] Error 1
>
> make[2]: Target `src/vpb/CMakeFiles/vpb.dir/build' not remade because of
> errors.
>
> make[1]: *** [src/vpb/CMakeFiles/vpb.dir/all] Error 2
>
> make[1]: Target `src/vpb/all' not remade because of errors.
>
> make: *** [all] Error 2
>
> make: Target `default_target' not remade because of errors.
>
>
>
> Compilation exited abnormally with code 2 at Fri Mar 19 00:05:20
>
>
>
>
>
>
>
> ----------------------------------------------------------------------------
>
> Zou wan
>
> Spatial Infomation Technology Lab
> Institute of Computing Technology
> Chinese Academy of Sciences
>
> Beijing, 100190, China
>
>
>
> [email protected]
>
>
>
> --
>
>
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
>
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to