CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: extern "C"

  1. #1
    Join Date
    Mar 2000
    Location
    Oxford, UK.
    Posts
    352

    Question extern "C"

    If I declare a function in a header to be C-linkage, do I also need to declare its definition in the source file?

  2. #2
    Join Date
    Apr 1999
    Posts
    27,449

    Re: extern "C"

    Quote Originally Posted by c94wjpn View Post
    If I declare a function in a header to be C-linkage, do I also need to declare its definition in the source file?
    No, it is not required but is accepted.

    Regards,

    Paul McKenzie

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured