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

Threaded View

  1. #1
    Join Date
    May 2001
    Location
    US,NY
    Posts
    25

    How to create global variables available functions in separate files??

    I want to create a header file with a few arrays defined inside it.

    Then I want all the C files that I compile to have access to those variables. how the **** do I go about this??

    If i include the header in main the other files cant see it. If I include the header in all the files I get xxxxxx already defined in xxxx.obj errors..

    It seems so simple yet I can not figure this out!!

    Please help

    oohh, I got bleeped it wont let me write h e l l
    Last edited by delic; October 11th, 2002 at 09:30 PM.

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