Re: [osg-users] Please help, linking errors with OpenSceneGraph
Try clean all, and rebuild...? Martin. -Original Message- From: osg-users-boun...@lists.openscenegraph.org [mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Renesis Skidac Sent: 26 September 2010 11:37 To: osg-users@lists.openscenegraph.org Subject: Re: [osg-users] Please help, linking errors with OpenSceneGraph Thats what is bothering me. I compiled OpenSceneGraph as release, I set my project to release, I'm using release libraries and Code generation is set to (/MD) and I'm still getting this error. -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=32079#32079 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Please help, linking errors with OpenSceneGraph
Thats what is bothering me. I compiled OpenSceneGraph as release, I set my project to release, I'm using release libraries and Code generation is set to (/MD) and I'm still getting this error. -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=32079#32079 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Please help, linking errors with OpenSceneGraph
Hi Renesis, - "Jean-Sébastien Guay" a écrit : > Hi Renesis, > > > [...] but now when the program runs I get this runtime error: > > > > Code: > > > > Windows has triggered a breakpoint in test.exe. > > This may be due to a corruption of the heap, which indicates a bug > in test.exe or any of the DLLs it has loaded. > > This may also be due to the user pressing F12 while test.exe has > focus. > > The output window may have more diagnostic information. > > > > And then it takes me to malloc.c. > > This is typically because you have compiled your program in debug but > > have linked to release libraries, or the opposite. If you're compiling > > your project in debug you need to link to debug libraries (the OSG > libraries have a 'd' at the end when they're debug versions) and vice > versa. > > Check that your project matches what you're linking to. This always > something to check when compiling with Visual C++. You can search the > > net or even this mailing list if you want more information on this, > it's > been discussed at length in the past. > > Hope this helps, Your test program should also be compiled with /MDd in debug mode and with /MD in release mode (see C/C++ / Code generation property page) -Fred ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Please help, linking errors with OpenSceneGraph
Hi Renesis, [...] but now when the program runs I get this runtime error: Code: Windows has triggered a breakpoint in test.exe. This may be due to a corruption of the heap, which indicates a bug in test.exe or any of the DLLs it has loaded. This may also be due to the user pressing F12 while test.exe has focus. The output window may have more diagnostic information. And then it takes me to malloc.c. This is typically because you have compiled your program in debug but have linked to release libraries, or the opposite. If you're compiling your project in debug you need to link to debug libraries (the OSG libraries have a 'd' at the end when they're debug versions) and vice versa. Check that your project matches what you're linking to. This always something to check when compiling with Visual C++. You can search the net or even this mailing list if you want more information on this, it's been discussed at length in the past. Hope this helps, J-S -- __ Jean-Sebastien Guayjean-sebastien.g...@cm-labs.com http://www.cm-labs.com/ http://whitestar02.webhop.org/ ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Please help, linking errors with OpenSceneGraph
Hi, OK, thank you for the help, now I don't get the linker errors (I forgot to include additional dependencies) but now when the program runs I get this runtime error: Code: Windows has triggered a breakpoint in test.exe. This may be due to a corruption of the heap, which indicates a bug in test.exe or any of the DLLs it has loaded. This may also be due to the user pressing F12 while test.exe has focus. The output window may have more diagnostic information. And then it takes me to malloc.c. Cheers, Renesis[/code] -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=32064#32064 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Please help, linking errors with OpenSceneGraph
I'll ask the obvious question: Are you linking against the OSG libraries? osgUtil.lib, osgDB.lib, osg.lib, etc.? Have you read the OSG Quick Start Guide section about how to set up projects that use OSG? -Paul On 9/25/2010 10:20 AM, Renesis Skidac wrote: Hi, I'm using Win 7 32bit and Visual Studio 2010 and have encountered a problem so I would like someone more experienced to help me. I searched and searched but couldnt find anything. I managed to compile OpenSceneGraph 2.8.3 and then I ran some of the binaries from "C:\Program Files\OpenSceneGraph\share\OpenSceneGraph\bin" folder to test whether everything was successful. These binaries worked. Then I tried to compile one of the examples by myself (so I copied the source of osganimate.cpp to my project folder). I set the project properties directories as shown. But when I compiled it I got a lot of linking errors and I dont know why. (I also had to add #include or I get some syntax errors in gl.h) Below is the screenshot of errors. Thank you! Cheers, Renesis -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=32062#32062 Attachments: http://forum.openscenegraph.org//files/errors_804.jpg http://forum.openscenegraph.org//files/directories_176.jpg ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org