Find the answer to your Linux question:
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.
  1. #1
    Just 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 saying
    Code:
    #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
    Linux 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

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

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

    Armage

  4. $spacer_open
    $spacer_close

Posting Permissions

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