浏览代码

解决qtcreator下面的编译错误

爬山虎 3 年之前
父节点
当前提交
2dbdac39e8
共有 2 个文件被更改,包括 8 次插入9 次删除
  1. 7 7
      RealCompare.pro
  2. 1 2
      main.cpp

+ 7 - 7
RealCompare.pro

@@ -13,7 +13,7 @@ HEADERS	+= *.h \
         cceditor/filemanager.h
         cceditor/filemanager.h
 
 
 		
 		
-SOURCES	+= *.cpp *.cc \
+SOURCES	+= *.cpp \
                 cceditor/ccnotepad.cpp \
                 cceditor/ccnotepad.cpp \
                 cceditor/filemanager.cpp
                 cceditor/filemanager.cpp
 
 
@@ -32,20 +32,19 @@ INCLUDEPATH += cceditor
 DEFINES +=  QSCINTILLA_DLL
 DEFINES +=  QSCINTILLA_DLL
 
 
 TRANSLATIONS += realcompare_zh.ts
 TRANSLATIONS += realcompare_zh.ts
-	
+
 win32 {
 win32 {
-   if(contains(QMAKE_HOST.arch, x86_64)){
-    CONFIG(Debug, Debug|Release){
+    CONFIG(debug, debug|release) {
         DESTDIR = x64/Debug
         DESTDIR = x64/Debug
 		LIBS	+= -Lx64/Debug
 		LIBS	+= -Lx64/Debug
 		LIBS += -lqmyedit_qt5d
 		LIBS += -lqmyedit_qt5d
     }else{
     }else{
         DESTDIR = x64/Release
         DESTDIR = x64/Release
-		LIBS	+= -Lx64/Release
-		LIBS += -lqmyedit_qt5
+                LIBS += -Lx64/Release
+                LIBS += -lqmyedit_qt5
                 QMAKE_CXXFLAGS += /openmp
                 QMAKE_CXXFLAGS += /openmp
     }
     }
-   }
+
 }
 }
 unix{
 unix{
 if(CONFIG(debug, debug|release)){
 if(CONFIG(debug, debug|release)){
@@ -82,3 +81,4 @@ DEPENDPATH += $$PWD/x64/Release
 
 
 unix:!macx: PRE_TARGETDEPS += $$PWD/x64/Release/libqmyedit_qt5.a
 unix:!macx: PRE_TARGETDEPS += $$PWD/x64/Release/libqmyedit_qt5.a
 }
 }
+

+ 1 - 2
main.cpp

@@ -1,5 +1,4 @@
-#include "netregister.h"
-#include "ccnotepad.h"
+#include "ccnotepad.h"
 #include "jsondeploy.h"
 #include "jsondeploy.h"
 #include "styleset.h"
 #include "styleset.h"