openscenegraph / OpenSceneGraph

OpenSceneGraph git repository
http://www.openscenegraph.org
Other
3.2k stars 1.41k forks source link

problem in visual studio 2019 #970

Open abc19850508 opened 4 years ago

abc19850508 commented 4 years ago

Today I compiled OpenSceneGraph with visual studio 2019. And then built a simple project to test. I met a problem as showed in the following pictures. How should I solve this problem? does any one ever met this problem?thanks for your help 7 9

LaurensVoerman commented 4 years ago

Hi abc19850508 Would you mind to communicate with something that looks like a human name? Thanks. Your problem seems like the kind of errors that comes with using the release build of osg while running the debug version of your project. In visual studio you cannot mix C++ code compiled with the release runtime library (/MD option) with code compiled with the debug runtime library (/MDd option) without getting weird and untraceable crashes. Laurens.

abc19850508 commented 3 years ago

Hi abc19850508 Would you mind to communicate with something that looks like a human name? Thanks. Your problem seems like the kind of errors that comes with using the release build of osg while running the debug version of your project. In visual studio you cannot mix C++ code compiled with the release runtime library (/MD option) with code compiled with the debug runtime library (/MDd option) without getting weird and untraceable crashes. Laurens.

thank you! I solved the problem with your advice(and i also changed my name)