Per essere più chiari, questo è il programma:
#include <QtGui/QApplication>
#include <OpenSG/OSGConfig.h>
#include <OpenSG/OSGNode.h>
#include <OpenSG/OSGSimpleGeometry.h>
#include <OpenSG/OSGSimpleSceneManager.h>
using namespace std;
using namespace osg;
int main(int argc, char *argv[])
{
osgInit(argc,argv); // Init the OpenSG subsystem
QApplication a(argc, argv);
a.connect(&a, SIGNAL(lastWindowClosed()), &a, SLOT(quit()));
return a.exec();
}
Questo è il build log:
Build Log Build started: Project: Prova2, Configuration: Debug|Win32
Command Lines Creating temporary file "c:\Documents and Settings\ghost\My Documents\Visual Studio 2005\Projects\Prova2\Prova2\Debug\RSP00002928004828.rsp" with contents
[
/Od /I ".\GeneratedFiles\Debug" /I "C:\Program Files\OpenSG\include" /I "C:\Qt\4.4.3\include\QtOpenGL" /I "C:\Qt\4.4.3\include\Qt3Support" /I "C:\Qt\4.4.3\include\QtGui" /I "C:\Qt\4.4.3\include\QtCore" /I "C:\Qt\4.4.3\include" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "UNICODE" /D "QT_LARGEFILE_SUPPORT" /D "QT_NO_DEBUG" /D "NDEBUG" /D "_UNICODE" /Gm /EHsc /RTC1 /MDd /Fo"Debug\\" /Fd"Debug\vc80.pdb" /W1 /c /TP ".\main.cpp"
]
Creating command line "cl.exe @"c:\Documents and Settings\ghost\My Documents\Visual Studio 2005\Projects\Prova2\Prova2\Debug\RSP00002928004828.rsp" /nologo /errorReport:prompt"
Creating temporary file "c:\Documents and Settings\ghost\My Documents\Visual Studio 2005\Projects\Prova2\Prova2\Debug\RSP00002A28004828.rsp" with contents
[
/OUT:"C:\Documents and Settings\ghost\My Documents\Visual Studio 2005\Projects\Prova2\Debug\Prova2.exe" /LIBPATH:"C:\Program Files\OpenSG\lib" /LIBPATH:"C:\Qt\4.4.3\lib" /MANIFEST /MANIFESTFILE:"Debug\Prova2.exe.intermediate.manifest" /DEBUG /PDB:"c:\Documents and Settings\ghost\My Documents\Visual Studio 2005\Projects\Prova2\debug\Prova2.pdb" /SUBSYSTEM:WINDOWS /MACHINE:X86 /NODEFAULTLIB:msvcrtd.lib qtmain.lib QtCore4.lib QtGui4.lib Qt3Support4.lib comdlg32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib
".\Debug\main.obj"
]
Creating command line "link.exe @"c:\Documents and Settings\ghost\My Documents\Visual Studio 2005\Projects\Prova2\Prova2\Debug\RSP00002A28004828.rsp" /NOLOGO /ERRORREPORT:PROMPT"
Output Window Compiling...
cl : Command line warning D9007 : '/Gm' requires '/Zi or /ZI'; option ignored
main.cpp
Linking...
main.obj : error LNK2019: unresolved external symbol "bool __cdecl osg::osgInit(int,char * *)" (?osgInit@osg@@YA_NHPAPAD@Z) referenced in function _main
main.obj : error LNK2019: unresolved external symbol ___security_cookie referenced in function _main
main.obj : error LNK2019: unresolved external symbol ___CxxFrameHandler3 referenced in function __ehhandler$_main
main.obj : error LNK2019: unresolved external symbol @__security_check_cookie@4 referenced in function __ehhandler$_main
main.obj : error LNK2019: unresolved external symbol @_RTC_CheckStackVars@8 referenced in function _main
main.obj : error LNK2019: unresolved external symbol __RTC_CheckEsp referenced in function _main
main.obj : error LNK2001: unresolved external symbol __RTC_Shutdown
main.obj : error LNK2001: unresolved external symbol __RTC_InitBase
main.obj : error LNK2019: unresolved external symbol _atexit referenced in function "void __cdecl `dynamic initializer for 'public: static class osg::PointInterface > const osg::PointInterface >::Null''(void)" (??__E?Null@?$PointInterface@MV?$VecStorage3@M@osg@@@osg@@2V12@B@@YAXXZ)
main.obj : error LNK2001: unresolved external symbol __fltused
LINK : error LNK2001: unresolved external symbol _WinMainCRTStartup
LINK : error LNK2001: unresolved external symbol __load_config_used
C:\Documents and Settings\ghost\My Documents\Visual Studio 2005\Projects\Prova2\Debug\Prova2.exe : fatal error LNK1120: 12 unresolved externals
Results Build log was saved at "file://c:\Documents and Settings\ghost\My Documents\Visual Studio 2005\Projects\Prova2\Prova2\Debug\BuildLog.htm"
Prova2 - 13 error(s), 1 warning(s)