i have a c file which contains some global variables.
and i have one cpp file which needs to access these global variables.
it did the following but failed:
Code:/* file.c */
int value;
i got a linker error saying _value is unresolved symbol.Code:// file.cpp
extern "C" {
extern int value;
}
i am using MSVC .Net 2003, but i need to be able to compile this on gcc as well. so a portable solution is needed here :(