Results 1 to 1 of 1

Thread: Problems with Nvidia (NVSG) and QVector.h

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    May 2010
    Posts
    2
    Qt products
    Qt4
    Platforms
    Windows

    Default Problems with Nvidia (NVSG) and QVector.h

    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
    Last edited by tas008; 19th May 2010 at 10:38.

Similar Threads

  1. QVector clear()
    By Persoontje in forum Newbie
    Replies: 4
    Last Post: 21st September 2009, 17:27
  2. how can i initilize a qvector like this ?
    By elflord in forum Qt Programming
    Replies: 2
    Last Post: 18th April 2009, 18:31
  3. Problem regarding QVector
    By sudheer168 in forum Qt Programming
    Replies: 1
    Last Post: 6th December 2008, 12:56
  4. Qvector
    By phillip_Qt in forum Qt Programming
    Replies: 3
    Last Post: 27th November 2007, 11:46
  5. QVector
    By sabeesh in forum Qt Programming
    Replies: 2
    Last Post: 17th September 2007, 15:37

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.