Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Qt54, adding class, cimpiler error
Forum Updated to NodeBB v4.3 + New Features

Qt54, adding class, cimpiler error

Scheduled Pinned Locked Moved Installation and Deployment
3 Posts 2 Posters 849 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Stefan_L_01
    wrote on last edited by
    #1

    Hi
    I´m very new to qt. Win7 64bit, dowloaded vs2010 (express + sdk 7.1 installed) version
    Made a new desktop project, added by wizard a class (.h, .cpp file). No further content written expect in main.cpp

    #include "clienttest.h"
    #include <QApplication>
    #include "cclient.h"

    CClient* PClient;

    int main(int argc, char *argv[])
    {
    QApplication a(argc, argv);

    PClient = new CClient();
    
    ClientTest w;
    w.show();
    
    delete PClient;
    
    return a.exec&#40;&#41;;
    

    }

    I get now compiler warnings that the constructor of CClient can not be resolved.
    Both files .h, .cpp are in project dir .. ?

    Any help?
    Thank you a lot
    Stefan

    1 Reply Last reply
    0
    • hskoglundH Online
      hskoglundH Online
      hskoglund
      wrote on last edited by
      #2

      Hi, maybe some anomaly in your cclient.h file, could you post it.

      1 Reply Last reply
      0
      • S Offline
        S Offline
        Stefan_L_01
        wrote on last edited by
        #3

        Hi
        I had to delete existing output folder. Then it compiled fine....

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved