>>>Can the g++ linker in Cygwin work with Visual C++ object libraries?Oh I know. This is the Windows PC version (should have stated that earlier). OpenInventor has a freeware Linux version and a Windows PC version distributed by TGS. The version I'm using is the Windows PC version which has libraries that work with Visual C++. I just don't know if Cygwin can use VC++ type library binaries. I don't recall the format of Visual C++ objects anymore (OMT?). It's a been a bit.
I have a feeling they work with isual C++ and their object format.
Generally not, only if they provided their libs as extern "C".
http://cygwin.com/faq/faq_4.html#SEC103
And Google for "cygwin g++ msvc link +site:cygwin.com"
OK... that's good news. I wonder what I have to do to link them. What I'm doing now for instance is this:
g++ -O -g C:/Cygwin/home/root/bin/myApp myApp.o graphics.o /usr/lib/InvSV110.lib /usr/lib/DataViz400.LIB /usr/lib/INV400.LIB /usr/lib/ DataViz400D.LIB /usr/lib/INV400D.LIB /usr/lib/DataVizW400.LIB /usr/lib/INVU400.L IB /usr/lib/DataVizW400D.LIB /usr/lib/INVU400D.LIB /usr/lib/DialogViz100.LIB /us r/lib/INVW400.LIB /usr/lib/DialogViz100D.LIB /usr/lib/INVW400D.LIB /usr/lib/Hard Copy400.LIB /usr/lib/IVF400.LIB /usr/lib/HardCopy400D.LIB /usr/lib/IVF400D.LIB / usr/lib/HardCopyW400.LIB /usr/lib/IVvr400.LIB /usr/lib/HardCopyW400D.LIB /usr/li b/Ivvr400D.LIB -L C:/Cygwin/home/root/lib -lm -lpthread -lGLU.dll -lGL.dll -lG Lw -lg2c
Is there a switch that I need to use for linking windows .LIB files? I'm getting lots of undefined references in the Inventor code (included headers) letting me know that I'm not linking the libraries (at least that's typically the problem when that happens).
-- Reini Urban http://xarch.tu-graz.ac.at/home/rurban/
-- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/