LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 07-24-2004, 07:16 AM   #1
tamtam
Member
 
Registered: May 2004
Distribution: Slackware.
Posts: 323

Rep: Reputation: 33
Where's the syntax error


Hi people,

I am having a problem locating the syntax error in a peice of code I have compiled in QT3 designer with qmake. The error is as follows...


In file included from .ui/conversionform.cpp:25:
conversionform.ui.h: In member function `void ConversionForm::init()':
conversionform.ui.h:67: error: syntax error before `(' token
make: *** [.obj/conversionform.o] Error 1

The code for the ::init() member function is below...

Code:
void ConversionForm::init()
{
        numberLineEdit->setValidator( new QDoubleValidator(numberLineEdit ) );
        numberLineEdit->setText( "10" );
        convert();
        numberLineEdit->selectAll();
}
line 67 is..
numberLineEdit->setValidator( new QDoubleValidator(numberLineEdit ) );

anyone out there with qt3 experience spot the error. I have experience of C++, but this is my first effort at designing a program with qt3. I have searched high and low for the error but can't find it. This is the example that comes with the documentation.

Any help appreciated.
TamTam.
 
Old 07-24-2004, 07:23 AM   #2
SBing
Member
 
Registered: Mar 2004
Posts: 519

Rep: Reputation: 35
Have you included qvalidator.h ?
 
Old 07-24-2004, 09:07 AM   #3
tamtam
Member
 
Registered: May 2004
Distribution: Slackware.
Posts: 323

Original Poster
Rep: Reputation: 33
Thanks SBing, it's always the glaringly obvious.

Tam
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
c++ syntax error...HELP!! lmvent Programming 3 09-30-2005 02:40 PM
Syntax error phernand Programming 1 05-10-2005 12:04 PM
Many errors when 'make'ing (example: error: syntax error before `::' token) darkblade Linux - Software 5 03-02-2005 03:00 PM
C++ syntax error before :: token HELP, i cant find the syntax error :( qwijibow Programming 2 12-14-2004 06:09 PM
ERROR running make when installing Nvidia drivers (syntax error) randyriver10 Linux - Software 5 02-21-2004 04:51 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 09:13 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration