use CpvCExtern for traceCoreOn. fixed net-win32 and VC++ linking errors.
authorGengbin Zheng <gzheng@illinois.edu>
Fri, 18 Jul 2003 06:35:09 +0000 (06:35 +0000)
committerGengbin Zheng <gzheng@illinois.edu>
Fri, 18 Jul 2003 06:35:09 +0000 (06:35 +0000)
src/conv-perf/traceCore.h
src/conv-perf/traceCoreCommon.C

index 485507a3a3a403b5d1bfe2f30a3bfdc6eb0d3ac8..8a77915ac6e430f7f40a5f346ba2d70a7d90a57e 100644 (file)
@@ -17,7 +17,7 @@ class TraceCore;
 class TraceLogger;
 class TraceEntry;
 
-CpvExtern(int, _traceCoreOn);
+CpvCExtern(int, _traceCoreOn);
 /*** structure of events ***/
 
 struct TraceCoreEvent {
index 93b18ae56004db62b2278f5b092ad0415ffbcd4b..cfa3185a09649f3c8d55722c2a1c9aff9ff0a82c 100644 (file)
@@ -10,7 +10,9 @@
 #define TRACE_CORE_BUFFER_SIZE 10
 
 /* Trace Storage and associated Structure */
+extern "C" {
 CpvDeclare(int, _traceCoreOn);
+}
 CpvDeclare(double, _traceCoreInitTime);
 CpvDeclare(char*, _traceCoreRoot);
 CpvDeclare(int, _traceCoreBufferSize);