Results 1 to 2 of 2

Thread: [Qt 4.4.3] Compiling error(make): ...qvector.h, error:qMalloc cannot be used as funct

  1. #1
    Join Date
    Oct 2008
    Posts
    2

    Question [Qt 4.4.3] Compiling error(make): ...qvector.h, error:qMalloc cannot be used as funct

    Hello.
    I writed the program under Linux - it works properly in all subjects.
    Now I need to compile it under Windows. For the beginning I tried to compile some tutorials - here is the first one:
    Accordingly the first tutorial (Assistant: QMake Manual -> qmake Tutorial) I created the pro file:
    "CONFIG += qt
    HEADERS += hello.h
    SOURCES += hello.cpp
    SOURCES += main.cpp",
    then successfully generated Makefile by command: "qmake -o Makefile hello.pro"
    But when I type "make" I get the error: "../include/QtCore/../../src/corelib/tools/qvector.h:370: error: `qMalloc' cannot be used as a function"

    What's wrong?

  2. #2
    Join Date
    Oct 2008
    Posts
    2

    Thumbs up Re: [Qt 4.4.3] Compiling error(make): ...qvector.h, error:qMalloc cannot be used as f

    Problem resolved.
    Before I installed MinGW by itself. But now I permitted downloading and installation of MinGW to Qt - and it compiled properly.

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.