-1
#include <stdio.h>
int main(void) {
  workFunc();
  return 0;
}

I have a sample code as above, but the function being called in 'main' is in another header file 'header.h'. So after the transformation, the code must look like

#include <stdio.h>
#include "header.h"
int main(void) {
  workFunc();
  return 0;
}

Please help. I am using clang, c++ coding and the transformation code available in this link

JasonMArcher
  • 14,195
  • 22
  • 56
  • 52
Jacaro
  • 321
  • 1
  • 3
  • 13

1 Answers1

0

I recommend just call it along the same way you call header files to your program and it should work.

Zero Tap
  • 1
  • 7
  • I have not called any header files in my program. When I do the transformation, is directly added to the newly obtained file. And I do not want 'header.h' to be in the old file. I just want it to be in the new file. – Jacaro May 29 '15 at 14:55
  • You mean using <> instead of the " "? – Zero Tap May 29 '15 at 14:58
  • Correct. Can you please explain what you are saying with an example ? I am very new to clang. – Jacaro May 29 '15 at 15:17
  • Whenever you create your own header classes, using " " is the standard for header files. Using <> is more used for sections of standard C++ code that are defaulted within the compiler itself. – Zero Tap May 29 '15 at 16:48