external variables

This is a discussion on external variables within the C++ Programming forums, part of the General Programming Boards category; extern "C" GLuint texturas[4]; this declaration is right? since exists another classe with a variable called texturas right?...

  1. #1
    Registered User
    Join Date
    Jan 2008
    Posts
    21

    external variables

    extern "C" GLuint texturas[4];

    this declaration is right? since exists another classe with a variable called texturas right?

  2. #2
    C++まいる!Cをこわせ! Elysia's Avatar
    Join Date
    Oct 2007
    Posts
    22,614
    Yes. The actual variable must be defined elsewhere.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Compiling sample DarkGDK Program
    By Phyxashun in forum Game Programming
    Replies: 6
    Last Post: 01-27-2009, 02:07 AM
  2. Replies: 15
    Last Post: 09-30-2008, 02:12 AM
  3. Overloaded Operator Causes Unresolved External Symbol
    By mikeman118 in forum C++ Programming
    Replies: 11
    Last Post: 03-03-2008, 03:40 PM
  4. Declaring an variable number of variables
    By Decrypt in forum C++ Programming
    Replies: 8
    Last Post: 02-27-2005, 03:46 PM
  5. external variables
    By schlamniel in forum C Programming
    Replies: 1
    Last Post: 11-02-2002, 04:40 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21