Index: trunk/BNC/bnc.pro
===================================================================
--- trunk/BNC/bnc.pro	(revision 125)
+++ trunk/BNC/bnc.pro	(revision 126)
@@ -4,6 +4,7 @@
 DEFINES += NO_RTCM3_MAIN
 
-HEADERS = bnchelp.html bncgetthread.h    bncwindow.h   bnctabledlg.h   \
+HEADERS = bnchelp.html bncgetthread.h    bncwindow.h   bnctabledlg.h  \
           bnccaster.h bncrinex.h bncapp.h bncutils.h                  \
+          bncconst.h                                                  \
           RTCM/format.h RTCM/GPSDecoder.h RTCM/m_data.h RTCM/RTCM.h   \
           RTCM3/rtcm3.h RTCM3/rtcm3torinex.h                          \
@@ -14,4 +15,5 @@
 SOURCES = bncmain.cpp bncgetthread.cpp  bncwindow.cpp bnctabledlg.cpp \
           bnccaster.cpp bncrinex.cpp bncapp.cpp bncutils.cpp          \
+          bncconst.cpp                                                \
           RTCM/m_date.cpp RTCM/RTCM.cpp                               \
           RTCM3/rtcm3.cpp RTCM3/rtcm3torinex.cpp                      \
Index: trunk/BNC/bncconst.cpp
===================================================================
--- trunk/BNC/bncconst.cpp	(revision 126)
+++ trunk/BNC/bncconst.cpp	(revision 126)
@@ -0,0 +1,8 @@
+
+#include "bncconst.h"
+
+const double t_CST::c       = 299792458.0;
+const double t_CST::freq1   = 1575420000.0;
+const double t_CST::freq2   = 1227600000.0;
+const double t_CST::lambda1 = c / freq1;
+const double t_CST::lambda2 = c / freq2;
Index: trunk/BNC/bncconst.h
===================================================================
--- trunk/BNC/bncconst.h	(revision 126)
+++ trunk/BNC/bncconst.h	(revision 126)
@@ -0,0 +1,14 @@
+#ifndef BNCCONST_H
+#define BNCCONST_H
+
+class t_CST {
+  public:
+    static const double c      ;
+    static const double freq1  ;
+    static const double freq2  ;
+    static const double lambda1;
+    static const double lambda2;
+};
+
+
+#endif
Index: trunk/BNC/bncrinex.cpp
===================================================================
--- trunk/BNC/bncrinex.cpp	(revision 125)
+++ trunk/BNC/bncrinex.cpp	(revision 126)
@@ -25,4 +25,5 @@
 #include "bncrinex.h"
 #include "bncutils.h"
+#include "bncconst.h"
 
 using namespace std;
@@ -206,10 +207,4 @@
   _out << endl;
 
-  static const double const_c       = 299792458.0;
-  static const double const_freq1   = 1575420000.0;
-  static const double const_freq2   = 1227600000.0;
-  static const double const_lambda1 = const_c / const_freq1;
-  static const double const_lambda2 = const_c / const_freq2;
-
   it.toFront();
   while (it.hasNext()) {
@@ -220,6 +215,6 @@
     _out << setw(14) << setprecision(3) << ob->C1 << lli << snr;
     _out << setw(14) << setprecision(3) << ob->P2 << lli << snr; 
-    _out << setw(14) << setprecision(3) << ob->L1 / const_lambda1 << lli << snr; 
-    _out << setw(14) << setprecision(3) << ob->L2 / const_lambda2 << lli << snr; 
+    _out << setw(14) << setprecision(3) << ob->L1 / t_CST::lambda1 << lli << snr; 
+    _out << setw(14) << setprecision(3) << ob->L2 / t_CST::lambda2 << lli << snr; 
     _out << endl;
 
