Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Message-ID: <3E3C279AF3F9D411BAA00002A529150E5009BD@S0-OTT-X10> From: "Mueller, Christof" To: "'cygwin AT cygwin DOT com'" Subject: problem linking to opengl functions, VTK Date: Mon, 28 Jan 2002 15:08:04 -0500 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" Hi, I'm trying to compile VTK examples and seem to have trouble linking with opengl. here is what I think should be working, but didn't: ( g++ -v -g -O2 -o ./Cone.exe Cone.cxx -I/usr/opt/VTK/VTK/Graphics -I/usr/opt/VTK/VTK/Filtering -I/usr/opt/VTK/VTK/Common -I/usr/opt/VTK/VTK -I/usr/opt/VTK/VTK/Rendering -L/usr/opt/VTK/VTK/bin/ -lvtkGraphics -lvtkFiltering -lvtkRendering -lvtkCommon -lopengl32 ) > & log here is the first part of my log file: Reading specs from /usr/lib/gcc-lib/i686-pc-cygwin/2.95.3-5/specs gcc version 2.95.3-5 (cygwin special) /usr/lib/gcc-lib/i686-pc-cygwin/2.95.3-5/cpp0.exe -lang-c++ -v -I/usr/opt/VTK/VTK/Graphics -I/usr/opt/VTK/VTK/Filtering -I/usr/opt/VTK/VTK/Common -I/usr/opt/VTK/VTK -I/usr/opt/VTK/VTK/Rendering -D__GNUC__=2 -D__GNUG__=2 -D__GNUC_MINOR__=95 -D__cplusplus -D_X86_=1 -D_X86_=1 -Asystem(winnt) -D__EXCEPTIONS -D__OPTIMIZE__ -g -Acpu(i386) -Amachine(i386) -Di386 -D__i386 -D__i386__ -Di686 -Dpentiumpro -D__i686 -D__i686__ -D__pentiumpro -D__pentiumpro__ -D__stdcall=__attribute__((__stdcall__)) -D__cdecl=__attribute__((__cdecl__)) -D_stdcall=__attribute__((__stdcall__)) -D_cdecl=__attribute__((__cdecl__)) -D__declspec(x)=__attribute__((x)) -D__CYGWIN32__ -D__CYGWIN__ -Dunix -D__unix__ -D__unix -isystem /usr/local/include -idirafter /usr/include -idirafter /usr/include/w32api -isystem /usr/include/g++-3 -isystem /usr/include/g++ Cone.cxx /cygdrive/c/WINDOWS/TEMP/ccwPAh1I.ii GNU CPP version 2.95.3-5 (cygwin special) (80386, BSD syntax) #include "..." search starts here: #include <...> search starts here: /usr/opt/VTK/VTK/Graphics /usr/opt/VTK/VTK/Filtering /usr/opt/VTK/VTK/Common /usr/opt/VTK/VTK /usr/opt/VTK/VTK/Rendering /usr/local/include /usr/include/g++-3 /usr/lib/gcc-lib/i686-pc-cygwin/2.95.3-5/include /usr/include /usr/include/w32api End of search list. The following default directories have been omitted from the search path: End of omitted list. /usr/lib/gcc-lib/i686-pc-cygwin/2.95.3-5/cc1plus.exe /cygdrive/c/WINDOWS/TEMP/ccwPAh1I.ii -quiet -dumpbase Cone.cc -g -O2 -version -o /cygdrive/c/WINDOWS/TEMP/cchHXRaz.s GNU C++ version 2.95.3-5 (cygwin special) (i686-pc-cygwin) compiled by GNU C version 2.95.3-5 (cygwin special). /usr/lib/gcc-lib/i686-pc-cygwin/2.95.3-5/../../../../i686-pc-cygwin/bin/as.e xe -o /cygdrive/c/WINDOWS/TEMP/ccvpwH00.o /cygdrive/c/WINDOWS/TEMP/cchHXRaz.s /usr/lib/gcc-lib/i686-pc-cygwin/2.95.3-5/collect2.exe -Bdynamic --dll-search-prefix=cyg -o ./Cone.exe /usr/lib/crt0.o -L/usr/opt/VTK/VTK/bin/ -L/usr/local/lib -L/usr/lib -L/usr/lib/w32api -L/usr/lib/gcc-lib/i686-pc-cygwin/2.95.3-5 /cygdrive/c/WINDOWS/TEMP/ccvpwH00.o -lvtkGraphics -lvtkFiltering -lvtkRendering -lvtkCommon -lopengl32 -lstdc++ -lgcc -lcygwin -luser32 -lkernel32 -ladvapi32 -lshell32 -lgcc /usr/opt/VTK/VTK/bin//libvtkRendering.a(vtkOpenGLActor.o): In function `vtkOpenGLActor::Render(vtkRenderer *, vtkMapper *)': /usr/opt/VTK/VTK/Rendering/vtkOpenGLActor.cxx:88: undefined reference to `glGetIntegerv' /usr/opt/VTK/VTK/Rendering/vtkOpenGLActor.cxx:95: undefined reference to `glDepthMask' /usr/opt/VTK/VTK/Rendering/vtkOpenGLActor.cxx:122: undefined reference to `glMatrixMode' /usr/opt/VTK/VTK/Rendering/vtkOpenGLActor.cxx:123: undefined reference to `glPushMatrix' /usr/opt/VTK/VTK/Rendering/vtkOpenGLActor.cxx:124: undefined reference to `glMultMatrixd' and when I look there I see [/usr/opt/VTK/VTK/Rendering/vtkOpenGLActor.cxx]: #include #include "vtkOpenGLRenderer.h" #include "vtkOpenGLActor.h" #ifdef __APPLE__ #include #else #include #endif #include "vtkObjectFactory.h" #ifndef VTK_IMPLEMENT_MESA_CXX //------------------------------------------------------------------------- vtkOpenGLActor* vtkOpenGLActor::New() { ............ I know that there was quite some discussion going on about these opengl linking problems, and I've read the /usr./doc/opengl stuff. I also went through the mail archive, but everything I tried failed, duh. I would really appreciate any help with this, Cheers, Christof -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/