当前位置: 代码迷 >> QT开发 >> 蛋疼的有关问题:moc: Too many input files specified
  详细解决方案

蛋疼的有关问题:moc: Too many input files specified

热度:78   发布时间:2016-04-25 04:59:55.0
蛋疼的问题:moc: Too many input files specified
moc: Too many input files specified 
有没有人遇到类似蛋疼的错误?
新建QTGuiClass 就出错 ,要重新建一个工程才行。


------解决方案--------------------
有冲突?
------解决方案--------------------
在redhat上找到的解答 

gcc tends to report the error message "cpp: too many input files" when 
it cannot find tools in the places it expects them to be. One cause is 
if you configured with a --prefix or a --exec-prefix argument with a 
trailing slash. You must ensure there are no trailing slashes to the 
arguments to --prefix and --exec-prefix. Another cause is if you have 
moved your gcc installation from the location you originally specified 
when it was configured. This location is determined primarily by the 
--exec-prefix argument to gcc's configure script. 

More recent gcc snapshots do not have this limitation, which is specific 
to gcc 2.95.2 or earlier. To resolve it, you can: use a more recent gcc 
snapshot; reconfigure gcc with the intended installation location set 
correctly; or set up symlinks from the old location to the new one.
  相关解决方案