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!
meiyantao
0
Light Poster
Recommended Answers
Jump to PostHello,my freinds:
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 Replies
WaltP
2,905
Posting Sage w/ dash of thyme
Team Colleague
Ancient Dragon
5,243
Achieved Level 70
Team Colleague
Featured Poster
vmanes
1,165
Posting Virtuoso
meiyantao
0
Light Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.