Laurent R wrote:
Hi, All:
There are two parts of codes in my project. One is implemented with
C++, the other is C. I compiled them repectively and link together.
But I found the problem. The function in C++ can not call the routine
coded with c. It will crash the system. And also the function in C++
can not access the global variable defined in C. It will get the
un-initialized value from the global variable.
Have u met this kind of problem? Who can help me to explain this kind
of problem?
Did you compile both parts of the code with the same C++ compiler? Did
you use extern "C" where necessary?
--Dave
/*
PLUG: http://plug.org, #utah on irc.freenode.net
Unsubscribe: http://plug.org/mailman/options/plug
Don't fear the penguin.
*/