I havea lot oflegacy code in c. Each function is prototyped in a separate header file tha contains all of the functions definitions.
1. When I made main.c a main.cilk and compiled all was fine -I included cilk-lib.cilkh in the include section for main.cilk. I also preceded main with th word cilk for cilk main. I compiled with no errors.
2. The called function WEG.c from cilk main was spawned next. The WEG.c was changed to WEG.cilk and againcilk-lib.cilkh was included in the WEG.cilk include and WEG.c name changed to WEG.cilk giving the WEG function in WEG.cilk a new definition.This caused an error:
WEG.cilk.95: identifier "WEG" redeclared
Previous declaration in WEGfundefs.h
Compilation failed. . .
Of course, I didredeclare it and that creates the errror. There is no prototype for WEG.cilk, but there is one for WEG.c. What should I do. The function WEG in WEG.cilk is now cilk WEG.
Do I eliminate/redefine the protoptype? Add a prototype for cilk WEG function?
Any help appreciated. Thanks in advance.
Newport_j


