Index: /trunk/BNC/src/bnccore.cpp
===================================================================
--- /trunk/BNC/src/bnccore.cpp	(revision 6042)
+++ /trunk/BNC/src/bnccore.cpp	(revision 6043)
@@ -51,8 +51,11 @@
 #include "rinex/rnxobsfile.h" 
 #include "rinex/rnxnavfile.h" 
-#include "PPP/pppMain.h"
+
+#ifdef USE_PPP
+#  include "PPP/pppMain.h"
+#endif
 
 #ifdef USE_COMBINATION
-#include "combination/bnccomb.h" 
+#  include "combination/bnccomb.h" 
 #endif
 
@@ -128,5 +131,7 @@
   _mainWindow = 0;
 
+#ifdef USE_PPP
   _pppMain = new BNC_PPP::t_pppMain();
+#endif
   qRegisterMetaType< QVector<double> >("QVector<double>");
   qRegisterMetaType<bncTime>("bncTime");
@@ -874,5 +879,7 @@
 ////////////////////////////////////////////////////////////////////////////
 void t_bncCore::startPPP() {
+#ifdef USE_PPP
   _pppMain->start();
+#endif
 }
 
@@ -880,5 +887,7 @@
 ////////////////////////////////////////////////////////////////////////////
 void t_bncCore::stopPPP() {
+#ifdef USE_PPP
   _pppMain->stop();
   emit stopRinexPPP();
-}
+#endif
+}
