PDA

View Full Version : Problems with Nvidia (NVSG) and QVector.h



tas008
19th May 2010, 09:31
Hello,

I'm new here, so please forgive me some failures.

I like to implement an application by Qt 4.6.2 with NVSG (NVIDIA® SceniX™ scene management engine) to use OpenGL 3.3 and in future OpenGL 4.0. I'm using Qt libraries 4.6.2 for Windows under Visual Studio 2008 with Visual Studio Add-in.

I started easy by one window application with NVSG extension.

int main(int argc, char *argv[])
{
nvsg::nvsgInitialize(nvsg::NVSG_MULTITHREADED, nvsg::NVSG_3DAPI_GL );
QApplication app(argc, argv);
GeoAppWindow mw;
mw.show();
app.exec();
nvsg::nvsgTerminate();

return 0;
}

My Problem now is following compiler error message:
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
e:\nvidia corporation\scenix 5.5\inc\nvsg\nvutil\trace.h(90) : warning C4996: 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
c:\program files\microsoft visual studio 9.0\vc\include\stdio.h(237) : see declaration of 'fopen'
e:\qt\4_6_2_vs\src\corelib\tools\qvector.h(502) : error C2061: syntax error : identifier 'pNew'
e:\qt\4_6_2_vs\src\corelib\tools\qvector.h(443) : while compiling class template member function 'void QVector<T>::realloc(int,int)'
with
[
T=QPainterPath::Element
]
e:\qt\4_6_2_vs\src\corelib\tools\qvector.h(338) : while compiling class template member function 'const QPainterPath::Element &QVector<T>::at(int) const'
with
[
T=QPainterPath::Element
]
e:\qt\4_6_2_vs\src\gui\painting\qpainterpath.h(249 ) : see reference to class template instantiation 'QVector<T>' being compiled
with
[
T=QPainterPath::Element
]
e:\qt\4_6_2_vs\src\corelib\tools\qvector.h(507) : error C2061: syntax error : identifier 'pNew'
GeoAppWindow.cpp
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

In QVector.h at line 507 I find the code
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
while (x.d->size < asize) {
507-> new (pNew++) T;
x.d->size++;
}
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

I'm at the end of my knowledge.
I would so happy if somebody could help me.

Thanks,
Timo