I am sorry for that I have solved it, just missing a ";" when I define the class.
I have re-edited this thread.
So sorry for flippancy！
Jump to Post
I'm writing a program with Qt4.The program can communicate with each other in a LAN.
Now,may ererything be ok,but the constructor is wrong,the compiler tells the fallowing:
- main.cpp:4: error: new types may not be defined in a return type
- main.cpp:4: note: (perhaps a semicolon is missing after the definition …
All 4 RepliesReply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.