How to call functions written in proc ( .pc ) files. in .c programs

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mdshafi01
    New Member
    • Jan 2008
    • 36

    #1

    How to call functions written in proc ( .pc ) files. in .c programs

    Hi,
    I have some programs those are written in .pc files.
    That is proc files. Some functions are available in .pc but its declaration is available in .h files and those functions are getting used in .c files.

    for example.

    in .h file

    int erro(char*) is available

    in .pc file
    int error(char *m) is available

    in . c file

    error("cap")

    so how we can achieve this.

    in .c file .h is included but .pc files name is not there.

    how this will get called.

    i am trying to run this in unix machine.

    please can any one help me in achieving this.

    shafi
  • zephyrus360
    New Member
    • Apr 2008
    • 5

    #2
    Can't you include the particular header file in your .c file?

    Also the .pc file will first have to be translated to .c file using the Pro*c Preprocessor.

    Comment

    Working...