Results 1 to 3 of 3
Well...I get this strange error in compiling a number of programs.
./configure works just fine...but then, when running make,
the compilation stops giving me an error saying it couldn't find ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 08-02-2004 #1Just Joined!
- Join Date
- Aug 2004
- Posts
- 1
Program instalation issue:what's up with ".moc"??
Well...I get this strange error in compiling a number of programs.
./configure works just fine...but then, when running make,
the compilation stops giving me an error saying it couldn't find [some_file].moc in [somefile].cpp
I searched the files myself on the disk but could not find them...and also opened the cpp-s and found (usually at the end) a line sayingNow, the question....what's up with that unusual #include at the end of a file???Code:#include "[somefile].moc"
If i comment the line in the corresponding cpps the compilation continues fine, but then gives me an linking error......
Does somebody know what is happening? I use Fedora Core 2(with the default compilation programs)
- 08-02-2004 #2Linux User
- Join Date
- Jul 2004
- Posts
- 256
Are you using kdevelope? A quick google makes it look like its for QT, but isn't necessasry, heres on link http://makepp.sourceforge.net/1.18/t_qt.html
--monkey
- 08-03-2004 #3Just Joined!
- Join Date
- Jul 2004
- Location
- UK
- Posts
- 77
Have you created the moc file using the moc command.
Try placing the include of the moc file just before the main constructor in the cpp file.Code:moc -o "file".moc "file".cpp
Armage


Reply With Quote
