Find the answer to your Linux question:
Results 1 to 3 of 3
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #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 saying
    #include "[somefile].moc"
    Now, the question....what's up with that unusual #include at the end of a file???
    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)

  2. #2
    Are you using kdevelope? A quick google makes it look like its for QT, but isn't necessasry, heres on link

  3. #3
    Just Joined!
    Join Date
    Jul 2004
    Have you created the moc file using the moc command.

    moc -o "file".moc "file".cpp
    Try placing the include of the moc file just before the main constructor in the cpp file.



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts