I compile my C program under Linux system, but after I compile it, it returns one error:
In function `Run(short, InputStruct*, OutStruct*)':
: undefined reference to `Calc(InputStruct*, OutStruct*)'
RITAMAIN.o(.eh_frame+0x11): undefined reference to `__gxx_personality_v0'
RITAIO.o(.eh_frame+0x11): undefined reference to `__gxx_personality_v0'
RITANR.o(.eh_frame+0x11): undefined reference to `__gxx_personality_v0'
collect2: ld returned 1 exit status
Could you give me some suggestions?
Thank you so much!
The first one says "undefined reference to `Calc(InputStruct*, OutStruct*)'", which suggests that, either the file that contains Calc(InputStruct*, OutputStruct*) isn't being compiled, or it is being compiled and the object just isn't being linked into your final program. Oh, or it could be just that you haven't written the function yet! If you ~have~ written the function Calc, then look over your build process (Makefile or whatever).