Red Hat Linux
Click URL instructions:
Right-click on ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)
You seem to have CSS turned off.
Please don't fill out this field.
Briefly describe the problem (required):
Please provide the ad click URL, if possible:
Date: 2012-09-08 01:12:46 +0000 (Sat, 08 Sep 2012)
Fix c++ linking problem in example 'variables'.
@@ -23,7 +23,12 @@
float fvar = 0;
double dvar = 0;
char *strvar = 0;
-const char cstrvar = "Goodbye";
+#ifdef __cplusplus // Note: for v8 this must be linkable with g++, without extern cstrvar is mangled
+extern const char cstrvar = "Goodbye";
+const char cstrvar = "Goodbye";
int *iptrvar = 0;
char name = "Dave";
char path = "/home/beazley";
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
Sign up for the SourceForge newsletter: