I have a game-engine-learning-project that uses SDL for input and works fine 
able to open a window a recieve the input so far but now I want to add OSG to 
it. I'm completely new and have never used it before, neither am I the most 
experienced programmer ever so... I may be missing something.

In debug configuration I get the warnings listed further down, then the game 
starts but crashes instantly with a messagebox saying:

The application failed to initialize properly (0xc0150002). Click OK to 
terminate the application.

In release configuration I get the same build warnings, but it runs without 
crashing and giving me that message.

I have have set Options->VC++ Directories to the proper SDL and OSG include, 
lib, bin directiories. The OSG release and debug libs are in the same dir.

I have the following additional dependencies for the engine project (in debug 
config, without the postfix D in release):
sdl.lib
sdlmain.lib
osgd.lib
osggad.lib
osgdbd.lib
osgviewerd.lib
osgtextd.lib
osgutild.lib
openthreadsd.lib

Looking at these warnings (below) there appears to be some kind of conflict 
between SDL and OSG.
And since it crashes, have I missed something?

Build output

1>------ Build started: Project: engine, Configuration: Debug Win32 ------
1>Compiling...
1>*.cpp
1>Generating Code...
1>Creating library...
1>osgd.lib(osg55-osgd.dll) : warning LNK4006: __NULL_IMPORT_DESCRIPTOR already 
defined in sdl.lib(SDL.dll); second definition ignored
1>osgd.lib(osg55-osgd.dll) : warning LNK4221: no public symbols found; archive 
member will be inaccessible
1>osggad.lib(osg55-osgGAd.dll) : warning LNK4006: __NULL_IMPORT_DESCRIPTOR 
already defined in sdl.lib(SDL.dll); second definition ignored
1>osggad.lib(osg55-osgGAd.dll) : warning LNK4221: no public symbols found; 
archive member will be inaccessible
1>osgdbd.lib(osg55-osgDBd.dll) : warning LNK4006: __NULL_IMPORT_DESCRIPTOR 
already defined in sdl.lib(SDL.dll); second definition ignored
1>osgdbd.lib(osg55-osgDBd.dll) : warning LNK4221: no public symbols found; 
archive member will be inaccessible
1>osgviewerd.lib(osg55-osgViewerd.dll) : warning LNK4006: 
__NULL_IMPORT_DESCRIPTOR already defined in sdl.lib(SDL.dll); second definition 
ignored
1>osgviewerd.lib(osg55-osgViewerd.dll) : warning LNK4221: no public symbols 
found; archive member will be inaccessible
1>osgtextd.lib(osg55-osgTextd.dll) : warning LNK4006: __NULL_IMPORT_DESCRIPTOR 
already defined in sdl.lib(SDL.dll); second definition ignored
1>osgtextd.lib(osg55-osgTextd.dll) : warning LNK4221: no public symbols found; 
archive member will be inaccessible
1>osgutild.lib(osg55-osgUtild.dll) : warning LNK4006: __NULL_IMPORT_DESCRIPTOR 
already defined in sdl.lib(SDL.dll); second definition ignored
1>osgutild.lib(osg55-osgUtild.dll) : warning LNK4221: no public symbols found; 
archive member will be inaccessible
1>openthreadsd.lib(ot11-OpenThreadsd.dll) : warning LNK4006: 
__NULL_IMPORT_DESCRIPTOR already defined in sdl.lib(SDL.dll); second definition 
ignored
1>openthreadsd.lib(ot11-OpenThreadsd.dll) : warning LNK4221: no public symbols 
found; archive member will be inaccessible
1>Build Time 0:41
1>Build log was saved at 
"file://c:\Users\me\Desktop\game_project\engine\Debug\BuildLog.htm"
1>engine - 0 error(s), 14 warning(s)
2>------ Build started: Project: game, Configuration: Debug Win32 ------
2>Compiling...
2>*.cpp
2>Generating Code...
2>Compiling manifest to resources...
2>Microsoft (R) Windows (R) Resource Compiler Version 6.1.6723.1
2>Copyright (C) Microsoft Corporation.  All rights reserved.
2>Linking...
2>MSVCRTD.lib(cinitexe.obj) : warning LNK4098: defaultlib 'msvcrt.lib' 
conflicts with use of other libs; use /NODEFAULTLIB:library
2>Embedding manifest...
2>Microsoft (R) Windows (R) Resource Compiler Version 6.1.6723.1
2>Copyright (C) Microsoft Corporation.  All rights reserved.
2>Build Time 0:10
2>Build log was saved at 
"file://c:\Users\me\Desktop\game_project\game\Debug\BuildLog.htm"
2>game - 0 error(s), 1 warning(s)
========== Build: 2 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========


Debug output

'game.exe': Loaded 'C:\Users\me\Desktop\game_project\Debug\game.exe', Symbols 
loaded.
'game.exe': Loaded 'C:\Windows\System32\ntdll.dll'
'game.exe': Loaded 'C:\Windows\System32\kernel32.dll'
'game.exe': Loaded 'C:\sdl\lib\SDL.dll', Binary was not built with debug 
information.
'game.exe': Loaded 'C:\Windows\System32\advapi32.dll'
'game.exe': Loaded 'C:\Windows\System32\rpcrt4.dll'
'game.exe': Loaded 'C:\Windows\System32\gdi32.dll'
'game.exe': Loaded 'C:\Windows\System32\user32.dll'
'game.exe': Loaded 'C:\Windows\System32\msvcrt.dll'
'game.exe': Loaded 'C:\Windows\System32\winmm.dll'
'game.exe': Loaded 'C:\Windows\System32\ole32.dll'
'game.exe': Loaded 'C:\Windows\System32\oleaut32.dll'
'game.exe': Loaded 'C:\Windows\System32\oleacc.dll'
'game.exe': Loaded 'C:\osg\bin\osg55-osgUtild.dll'
Debugger:: An unhandled non-continuable exception was thrown during process load
The program '[4016] game.exe: Native' has exited with code -1072365566 
(0xc0150002).

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=14288#14288





_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to