The problem is the initialization of struct camera. One must
initialize explicit camera.node in g++ version.
Trying the following example, and you will find the problem.
gcc -o test test.c
g++ -o test test.c
printf("camera.node = %d\n", camera.node);
From: Olaf Hering <olh@su...> - 2005-07-18 16:17:01
On Sat, Jul 16, Huskier wrote:
> The problem is the initialization of struct camera. One must
> initialize explicit camera.node in g++ version.
The content of a local variable or struct is undefined. I dont see where
the initalization is done ine your code.